SQLite: CreatorID added (and asset_flags moved) to the migration script

soprefactor
AlexRa 2010-05-19 10:07:48 +03:00
parent c6977cbd4d
commit accf8c420d
1 changed files with 24 additions and 0 deletions

View File

@ -40,3 +40,27 @@ update assets
COMMIT; COMMIT;
:VERSION 5
BEGIN TRANSACTION;
CREATE TEMPORARY TABLE assets_backup(UUID,Name,Description,Type,Local,Temporary,Data);
INSERT INTO assets_backup SELECT UUID,Name,Description,Type,Local,Temporary,Data FROM assets;
DROP TABLE assets;
CREATE TABLE assets(
UUID NOT NULL PRIMARY KEY,
Name,
Description,
Type,
Local,
Temporary,
asset_flags INTEGER NOT NULL DEFAULT 0,
CreatorID varchar(36) default '',
Data);
INSERT INTO assets(UUID,Name,Description,Type,Local,Temporary,Data)
SELECT UUID,Name,Description,Type,Local,Temporary,Data FROM assets_backup;
DROP TABLE assets_backup;
COMMIT;