Some checks failed
Backend Tests / Static Checks (push) Has been cancelled
Backend Tests / Tests (other) (push) Has been cancelled
Backend Tests / Tests (plugin) (push) Has been cancelled
Backend Tests / Tests (server) (push) Has been cancelled
Backend Tests / Tests (store) (push) Has been cancelled
Build Canary Image / build-frontend (push) Has been cancelled
Build Canary Image / build-push (linux/amd64) (push) Has been cancelled
Build Canary Image / build-push (linux/arm64) (push) Has been cancelled
Build Canary Image / merge (push) Has been cancelled
Frontend Tests / Lint (push) Has been cancelled
Frontend Tests / Build (push) Has been cancelled
Proto Linter / Lint Protos (push) Has been cancelled
16 lines
553 B
SQL
16 lines
553 B
SQL
ALTER TABLE memo ADD COLUMN resource_name TEXT;
|
|
|
|
UPDATE memo SET resource_name = uuid_in(md5(random()::text || random()::text)::cstring);
|
|
|
|
ALTER TABLE memo ALTER COLUMN resource_name SET NOT NULL;
|
|
|
|
CREATE UNIQUE INDEX idx_memo_resource_name ON memo (resource_name);
|
|
|
|
ALTER TABLE resource ADD COLUMN resource_name TEXT;
|
|
|
|
UPDATE resource SET resource_name = uuid_in(md5(random()::text || random()::text)::cstring);
|
|
|
|
ALTER TABLE resource ALTER COLUMN resource_name SET NOT NULL;
|
|
|
|
CREATE UNIQUE INDEX idx_resource_resource_name ON resource (resource_name);
|