2022-10-01 07:27:47 +02:00
|
|
|
|
|
|
|
-- 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");
|
2022-10-12 21:20:20 +02:00
|
|
|
|
|
|
|
-- CreateIndex
|
|
|
|
CREATE INDEX "account_account_uuid_idx" ON "account"("account_uuid");
|
|
|
|
|
|
|
|
-- CreateIndex
|
|
|
|
CREATE INDEX "session_session_uuid_idx" ON "session"("session_uuid");
|
|
|
|
|
|
|
|
-- CreateIndex
|
|
|
|
CREATE INDEX "website_website_uuid_idx" ON "website"("website_uuid");
|