diff options
author | Sean Dague | 2008-06-23 16:00:18 +0000 |
---|---|---|
committer | Sean Dague | 2008-06-23 16:00:18 +0000 |
commit | 8b6bd93d68226f468cb20ecfe4e932ca91d15c21 (patch) | |
tree | 6d1cc37f9c7eabf76b98b111d0e0f7442d6d799a /OpenSim/Data | |
parent | changed kickuser console command to use caseless compared substrings for firs... (diff) | |
download | opensim-SC_OLD-8b6bd93d68226f468cb20ecfe4e932ca91d15c21.zip opensim-SC_OLD-8b6bd93d68226f468cb20ecfe4e932ca91d15c21.tar.gz opensim-SC_OLD-8b6bd93d68226f468cb20ecfe4e932ca91d15c21.tar.bz2 opensim-SC_OLD-8b6bd93d68226f468cb20ecfe4e932ca91d15c21.tar.xz |
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.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/MySQL/Resources/003_AssetStore.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Resources/003_AssetStore.sql b/OpenSim/Data/MySQL/Resources/003_AssetStore.sql new file mode 100644 index 0000000..d489278 --- /dev/null +++ b/OpenSim/Data/MySQL/Resources/003_AssetStore.sql | |||
@@ -0,0 +1,9 @@ | |||
1 | BEGIN; | ||
2 | |||
3 | ALTER TABLE assets change id oldid varchar(36); | ||
4 | ALTER TABLE assets add id char(36) not null default '00000000-0000-0000-0000-000000000000'; | ||
5 | UPDATE assets set id = oldid; | ||
6 | ALTER TABLE assets drop oldid; | ||
7 | ALTER TABLE assets add constraint primary key(id); | ||
8 | |||
9 | COMMIT; \ No newline at end of file | ||