SQLite db migration update

This commit is contained in:
UbitUmarov
2015-09-21 12:07:17 +01:00
parent 33b4077c2c
commit f272a023e2
3 changed files with 57 additions and 6 deletions

View File

@@ -25,3 +25,11 @@ BEGIN TRANSACTION;
INSERT INTO UserAccounts (PrincipalID, ScopeID, FirstName, LastName, Email, ServiceURLs, Created) SELECT `UUID` AS PrincipalID, '00000000-0000-0000-0000-000000000000' AS ScopeID, username AS FirstName, surname AS LastName, '' as Email, '' AS ServiceURLs, created as Created FROM users;
COMMIT;
:VERSION 3 # -------------------------
BEGIN;
ALTER TABLE `UserAccounts` ADD `active` BOOLEAN NOT NULL DEFAULT TRUE;
COMMIT;