mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
add uuid to account
This commit is contained in:
parent
d4abe51331
commit
adb0a06006
3 changed files with 26 additions and 8 deletions
12
db/postgresql/migrations/04_account_uuid/migration.sql
Normal file
12
db/postgresql/migrations/04_account_uuid/migration.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
-- AlterTable
|
||||
ALTER TABLE "account" ADD COLUMN "account_uuid" UUID NULL;
|
||||
|
||||
-- Backfill UUID
|
||||
UPDATE "account" SET account_uuid = gen_random_uuid();
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "account" ALTER COLUMN "account_uuid" SET NOT NULL;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "account_account_uuid_key" ON "account"("account_uuid");
|
||||
Loading…
Add table
Add a link
Reference in a new issue