From 8b6bd93d68226f468cb20ecfe4e932ca91d15c21 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 23 Jun 2008 16:00:18 +0000 Subject: [PATCH] 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. --- OpenSim/Data/MySQL/Resources/003_AssetStore.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 OpenSim/Data/MySQL/Resources/003_AssetStore.sql diff --git a/OpenSim/Data/MySQL/Resources/003_AssetStore.sql b/OpenSim/Data/MySQL/Resources/003_AssetStore.sql new file mode 100644 index 0000000000..d489278f13 --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/003_AssetStore.sql @@ -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; \ No newline at end of file