bitque/migrations/2020-08-10-194809_change_epic/down.sql

22 lines
471 B
MySQL
Raw Normal View History

2020-08-10 22:34:19 +02:00
ALTER TABLE "issues"
ALTER COLUMN "issue_type"
SET DATA TYPE TEXT
USING "issue_type"::TEXT;
2023-04-01 22:31:57 +02:00
DROP TYPE IF EXISTS "IssueTypeMapping" CASCADE;
CREATE TYPE "IssueTypeMapping" AS ENUM (
2020-08-10 22:34:19 +02:00
'task',
'bug',
'story',
'epic'
);
ALTER TABLE "issues"
ALTER COLUMN "issue_type"
2023-04-01 22:31:57 +02:00
SET DATA TYPE "IssueTypeMapping"
USING "issue_type"::"IssueTypeMapping";
2020-08-10 22:34:19 +02:00
ALTER TABLE "issues" DROP COLUMN "epic_id";
DROP TABLE IF EXISTS epics;