mirror of
https://github.com/opensim/opensim.git
synced 2026-05-18 13:35:35 +08:00
12 lines
403 B
PL/PgSQL
12 lines
403 B
PL/PgSQL
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;
|