* Change UUIDs in SQLite user db to dashed format to match representations elsewhere

This commit is contained in:
Justin Clarke Casey
2009-04-09 19:01:52 +00:00
parent 39c6302972
commit 67333d48fc
3 changed files with 22 additions and 11 deletions

View 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;