From 57e34f7c1588e3c9d1a5b798f459c700ccb48dba Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 7 Feb 2019 13:48:11 +0100 Subject: [PATCH] P5-3536 remove agencies --- migrations/000.090.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 migrations/000.090.sql diff --git a/migrations/000.090.sql b/migrations/000.090.sql new file mode 100644 index 0000000..9be7c89 --- /dev/null +++ b/migrations/000.090.sql @@ -0,0 +1,8 @@ +-- P5-3536 remove agencies + +DROP TABLE agencies; + +ALTER TABLE designers DROP COLUMN agency_id; + +DELETE FROM u_role_user WHERE role_id = (SELECT id FROM u_roles WHERE name = 'agency'); +DELETE FROM u_roles WHERE name = 'agency';