Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b2627fd

Browse files
author
Sachin Maheshwari
committedAug 6, 2019
SQL changes
1 parent cd48422 commit b2627fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎migrations/v2.0.1.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
ALTER TABLE "public"."NotificationSettings"
33
RENAME COLUMN "topic" TO "topicOld";
44

5+
ALTER TABLE "public"."NotificationSettings"
6+
ALTER COLUMN "topicOld" DROP NOT NULL;
7+
58
-- add "topic" column
69
ALTER TABLE "public"."NotificationSettings"
710
ADD COLUMN "topic" character varying(255);
811

12+
913
UPDATE "NotificationSettings" SET topic='connect.notification.project.timeline.milestone.transition.completed' WHERE "topicOld"='connect.action.timeline.milestone.transition.completed'
1014
UPDATE "NotificationSettings" SET topic='connect.notification.project.product.update.spec' WHERE "topicOld"='connect.action.project.product.update.spec'
1115
UPDATE "NotificationSettings" SET topic='connect.notification.project.created' WHERE "topicOld"='notifications.connect.project.created'

0 commit comments

Comments
 (0)
Please sign in to comment.