fix(be): update sql query

This commit is contained in:
Denis Gukov 2023-07-07 23:37:41 +02:00
parent 026e5a910b
commit 07b908f1ef

View File

@ -1,5 +1,5 @@
ALTER TABLE project__user ADD `role` varchar NOT NULL DEFAULT 'task_runner';
UPDATE project__user SET `role` = 'owner' WHEN `admin`;
UPDATE project__user SET `role` = 'owner' WHERE `admin`;
ALTER TABLE project__user DROP COLUMN `admin`;