add migration to go from varchar -> char for uuid. Tested

on my machine, and works, but backing up before migrations
is always a good idea.
0.6.0-stable
Sean Dague 2008-06-23 16:00:18 +00:00
parent 064a2ea460
commit 8b6bd93d68
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
BEGIN;
ALTER TABLE assets change id oldid varchar(36);
ALTER TABLE assets add id char(36) not null default '00000000-0000-0000-0000-000000000000';
UPDATE assets set id = oldid;
ALTER TABLE assets drop oldid;
ALTER TABLE assets add constraint primary key(id);
COMMIT;