diff options
author | Justin Clarke Casey | 2009-04-09 19:01:52 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-04-09 19:01:52 +0000 |
commit | 67333d48fc0b9e70804b7ceef80494484b2a247c (patch) | |
tree | d9d191522f0ba65a02d6bf4480cbe606b6e37f02 /OpenSim/Data/SQLite/Resources | |
parent | * Improve inventory uuid conversions to make sure that we aren't converting a... (diff) | |
download | opensim-SC_OLD-67333d48fc0b9e70804b7ceef80494484b2a247c.zip opensim-SC_OLD-67333d48fc0b9e70804b7ceef80494484b2a247c.tar.gz opensim-SC_OLD-67333d48fc0b9e70804b7ceef80494484b2a247c.tar.bz2 opensim-SC_OLD-67333d48fc0b9e70804b7ceef80494484b2a247c.tar.xz |
* Change UUIDs in SQLite user db to dashed format to match representations elsewhere
Diffstat (limited to 'OpenSim/Data/SQLite/Resources')
-rw-r--r-- | OpenSim/Data/SQLite/Resources/009_UserStore.sql | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/Resources/009_UserStore.sql b/OpenSim/Data/SQLite/Resources/009_UserStore.sql new file mode 100644 index 0000000..b4cc00c --- /dev/null +++ b/OpenSim/Data/SQLite/Resources/009_UserStore.sql | |||
@@ -0,0 +1,11 @@ | |||
1 | BEGIN; | ||
2 | |||
3 | update users | ||
4 | set UUID = substr(UUID, 1, 8) || "-" || substr(UUID, 9, 4) || "-" || substr(UUID, 13, 4) || "-" || substr(UUID, 17, 4) || "-" || substr(UUID, 21) | ||
5 | where UUID not like '%-%'; | ||
6 | |||
7 | update useragents | ||
8 | set UUID = substr(UUID, 1, 8) || "-" || substr(UUID, 9, 4) || "-" || substr(UUID, 13, 4) || "-" || substr(UUID, 17, 4) || "-" || substr(UUID, 21) | ||
9 | where UUID not like '%-%'; | ||
10 | |||
11 | COMMIT; | ||