add 3 migrations, 1 each for prims, primshapes, and primitems

to move all their UUID stores from varchar(255) -> char(36).  Based
on past evidence, this should help with performance.
This commit is contained in:
Sean Dague
2008-07-03 19:41:01 +00:00
parent 8eb57b68f3
commit a9b3c2582a
3 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
BEGIN;
ALTER TABLE primshapes change UUID UUIDold varchar(255);
ALTER TABLE primshapes add UUID char(36);
UPDATE primshapes set UUID = UUIDold;
ALTER TABLE primshapes drop UUIDold;
ALTER TABLE primshapes add constraint primary key(UUID);
COMMIT;