mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
* Change UUIDs in SQLite user db to dashed format to match representations elsewhere
This commit is contained in:
11
OpenSim/Data/SQLite/Resources/009_UserStore.sql
Normal file
11
OpenSim/Data/SQLite/Resources/009_UserStore.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
BEGIN;
|
||||
|
||||
update users
|
||||
set UUID = substr(UUID, 1, 8) || "-" || substr(UUID, 9, 4) || "-" || substr(UUID, 13, 4) || "-" || substr(UUID, 17, 4) || "-" || substr(UUID, 21)
|
||||
where UUID not like '%-%';
|
||||
|
||||
update useragents
|
||||
set UUID = substr(UUID, 1, 8) || "-" || substr(UUID, 9, 4) || "-" || substr(UUID, 13, 4) || "-" || substr(UUID, 17, 4) || "-" || substr(UUID, 21)
|
||||
where UUID not like '%-%';
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user