Semaphore/db/sql/migrations/v2.8.91.sql

5 lines
181 B
SQL

ALTER TABLE project__user ADD `role` varchar NOT NULL DEFAULT "task_runner";
UPDATE project__user SET `role` = "owner" WHEN `admin`;
ALTER TABLE project__user DROP COLUMN `admin`;