diff --git a/connect/constants.js b/connect/constants.js index bfcf725..333839a 100644 --- a/connect/constants.js +++ b/connect/constants.js @@ -16,60 +16,60 @@ module.exports = { BUS_API_EVENT: { CONNECT: { POST: { - UPDATED: 'notifications.connect.project.post.edited', - CREATED: 'notifications.connect.project.post.created', - DELETED: 'notifications.connect.project.post.deleted', - MENTION: 'notifications.connect.project.post.mention', + UPDATED: 'connect.notification.project.post.edited', + CREATED: 'connect.notification.project.post.created', + DELETED: 'connect.notification.project.post.deleted', + MENTION: 'connect.notification.project.post.mention', }, MEMBER: { - JOINED: 'notifications.connect.project.member.joined', - LEFT: 'notifications.connect.project.member.left', - REMOVED: 'notifications.connect.project.member.removed', - MANAGER_JOINED: 'notifications.connect.project.member.managerJoined', - COPILOT_JOINED: 'notifications.connect.project.member.copilotJoined', - ASSIGNED_AS_OWNER: 'notifications.connect.project.member.assignedAsOwner', - INVITE_CREATED: 'notifications.connect.project.member.invite.created', - INVITE_UPDATED: 'notifications.connect.project.member.invite.updated', - INVITE_REQUESTED: 'notifications.connect.project.member.invite.requested', - INVITE_APPROVED: 'notifications.connect.project.member.invite.approved', - INVITE_REJECTED: 'notifications.connect.project.member.invite.rejected', + JOINED: 'connect.notification.project.member.joined', + LEFT: 'connect.notification.project.member.left', + REMOVED: 'connect.notification.project.member.removed', + MANAGER_JOINED: 'connect.notification.project.member.managerJoined', + COPILOT_JOINED: 'connect.notification.project.member.copilotJoined', + ASSIGNED_AS_OWNER: 'connect.notification.project.member.assignedAsOwner', + INVITE_CREATED: 'connect.notification.project.member.invite.created', + INVITE_UPDATED: 'connect.notification.project.member.invite.updated', + INVITE_REQUESTED: 'connect.notification.project.member.invite.requested', + INVITE_APPROVED: 'connect.notification.project.member.invite.approved', + INVITE_REJECTED: 'connect.notification.project.member.invite.rejected', }, PROJECT: { - ACTIVE: 'notifications.connect.project.active', - APPROVED: 'notifications.connect.project.approved', - CANCELED: 'notifications.connect.project.canceled', - COMPLETED: 'notifications.connect.project.completed', - CREATED: 'notifications.connect.project.created', - FILE_UPLOADED: 'notifications.connect.project.fileUploaded', - LINK_CREATED: 'notifications.connect.project.linkCreated', - PAUSED: 'notifications.connect.project.paused', - SUBMITTED_FOR_REVIEW: 'notifications.connect.project.submittedForReview', - SPECIFICATION_MODIFIED: 'connect.action.project.updated.spec', + ACTIVE: 'connect.notification.project.active', + APPROVED: 'connect.notification.project.approved', + CANCELED: 'connect.notification.project.canceled', + COMPLETED: 'connect.notification.project.completed', + CREATED: 'connect.notification.project.created', + FILE_UPLOADED: 'connect.notification.project.fileUploaded', + LINK_CREATED: 'connect.notification.project.linkCreated', + PAUSED: 'connect.notification.project.paused', + SUBMITTED_FOR_REVIEW: 'connect.notification.project.submittedForReview', + SPECIFICATION_MODIFIED: 'connect.notification.project.updated.spec', }, PROJECT_PLAN: { - READY: 'connect.action.project.plan.ready', - MODIFIED: 'connect.action.project.plan.updated', - PROGRESS_UPDATED: 'connect.action.project.updated.progress', - PHASE_ACTIVATED: 'notifications.connect.project.phase.transition.active', - PHASE_COMPLETED: 'notifications.connect.project.phase.transition.completed', - PHASE_PAYMENT_UPDATED: 'notifications.connect.project.phase.update.payment', - PHASE_PROGRESS_UPDATED: 'notifications.connect.project.phase.update.progress', - PHASE_SCOPE_UPDATED: 'notifications.connect.project.phase.update.scope', - PHASE_PRODUCT_SPEC_UPDATED: 'connect.action.project.product.update.spec', - MILESTONE_ACTIVATED: 'connect.action.timeline.milestone.transition.active', - MILESTONE_COMPLETED: 'connect.action.timeline.milestone.transition.completed', - WAITING_FOR_CUSTOMER_INPUT: 'connect.action.timeline.milestone.waiting.customer', - TIMELINE_ADJUSTED: 'connect.action.timeline.adjusted', + READY: 'connect.notification.project.plan.ready', + MODIFIED: 'connect.notification.project.plan.updated', + PROGRESS_UPDATED: 'connect.notification.project.updated.progress', + PHASE_ACTIVATED: 'connect.notification.project.phase.transition.active', + PHASE_COMPLETED: 'connect.notification.project.phase.transition.completed', + PHASE_PAYMENT_UPDATED: 'connect.notification.project.phase.update.payment', + PHASE_PROGRESS_UPDATED: 'connect.notification.project.phase.update.progress', + PHASE_SCOPE_UPDATED: 'connect.notification.project.phase.update.scope', + PHASE_PRODUCT_SPEC_UPDATED: 'connect.notification.project.product.update.spec', + MILESTONE_ACTIVATED: 'connect.notification.project.timeline.milestone.transition.active', + MILESTONE_COMPLETED: 'connect.notification.project.timeline.milestone.transition.completed', + WAITING_FOR_CUSTOMER_INPUT: 'connect.notification.project.timeline.milestone.waiting.customer', + TIMELINE_ADJUSTED: 'connect.notification.project.timeline.adjusted', }, TOPIC: { - CREATED: 'notifications.connect.project.topic.created', - DELETED: 'notifications.connect.project.topic.deleted', + CREATED: 'connect.notification.project.topic.created', + DELETED: 'connect.notification.project.topic.deleted', }, }, EMAIL: { // TODO: after a proper named email topic is created, this is being used as the email event's topic - GENERAL: 'notifications.action.email.connect.project.notifications.generic', - BUNDLED: 'notifications.action.email.connect.project.notifications.bundled', + GENERAL: 'connect.notification.email.project.notifications.generic', + BUNDLED: 'connect.notification.email.project.notifications.bundled', }, }, }; diff --git a/constants.js b/constants.js index 317bf3a..4cadd8f 100644 --- a/constants.js +++ b/constants.js @@ -7,7 +7,7 @@ module.exports = { BUS_API_EVENT: { EMAIL: { - GENERAL: 'notifications.action.email.connect.project.notifications.generic', + GENERAL: 'connect.notification.email.project.notifications.generic', }, }, }; diff --git a/emails/src/partials/project-plan.html b/emails/src/partials/project-plan.html index dcd772e..18090fa 100644 --- a/emails/src/partials/project-plan.html +++ b/emails/src/partials/project-plan.html @@ -35,40 +35,40 @@ - {{#if [connect.action.project.plan.ready]}} + {{#if [connect.notification.project.plan.ready]}} Project plan is ready for your project {{/if}} - {{#if [connect.action.project.plan.updated]}} + {{#if [connect.notification.project.plan.updated]}} Project plan is modified for your project {{/if}} - {{#if [connect.action.project.updated.progress]}} + {{#if [connect.notification.project.updated.progress]}} Your project has made some progress {{/if}} - {{#if [notifications.connect.project.phase.transition.active]}} + {{#if [connect.notification.project.phase.transition.active]}} Phase {{updatedPhase.name}} is activated {{/if}} - {{#if [notifications.connect.project.phase.transition.completed]}} + {{#if [connect.notification.project.phase.transition.completed]}} Phase {{updatedPhase.name}} is completed {{/if}} - {{#if [notifications.connect.project.phase.update.payment]}} + {{#if [connect.notification.project.phase.update.payment]}} Payments updated for phase {{updatedPhase.name}} {{/if}} - {{#if [notifications.connect.project.phase.update.progress]}} + {{#if [connect.notification.project.phase.update.progress]}} Phase {{updatedPhase.name}} has made some progress {{/if}} - {{#if [notifications.connect.project.phase.update.scope]}} + {{#if [connect.notification.project.phase.update.scope]}} Scope of the phase {{updatedPhase.name}} updated {{/if}} - {{#if [connect.action.project.product.update.spec]}} + {{#if [connect.notification.project.product.update.spec]}} Scope of the phase {{updatedPhase.name}} updated {{/if}} - {{#if [connect.action.timeline.milestone.transition.active]}} + {{#if [connect.notification.project.timeline.milestone.transition.active]}} A milestone is activated in phase {{updatedPhase.name}} {{/if}} - {{#if [connect.action.timeline.milestone.transition.completed]}} + {{#if [connect.notification.project.timeline.milestone.transition.completed]}} A milestone is completed in phase {{updatedPhase.name}} {{/if}} - {{#if [connect.action.timeline.milestone.waiting.customer]}} + {{#if [connect.notification.project.timeline.milestone.waiting.customer]}} We are waiting for your input at a milestone in the phase {{updatedPhase.name}} {{/if}} diff --git a/emails/src/partials/project-status.html b/emails/src/partials/project-status.html index 4e058f8..6805f2b 100644 --- a/emails/src/partials/project-status.html +++ b/emails/src/partials/project-status.html @@ -35,25 +35,25 @@ - {{#if [notifications.connect.project.active]}} + {{#if [connect.notification.project.active]}} We reviewed your project and have successfully launched it on our network. Now the copilots would be assigned according to your techincal specification, and they will proceed to building the work specification for the first phase. During this time they might ask you further questions in regards with the details of your system, in order for us to build a really great app. {{/if}} - {{#if [notifications.connect.project.approved]}} + {{#if [connect.notification.project.approved]}} Your project is now approved {{/if}} - {{#if [notifications.connect.project.canceled]}} + {{#if [connect.notification.project.canceled]}} Your project is now canceled {{/if}} - {{#if [notifications.connect.project.completed]}} + {{#if [connect.notification.project.completed]}} Your project is now complete {{/if}} - {{#if [notifications.connect.project.created]}} + {{#if [connect.notification.project.created]}} Your project is created {{/if}} - {{#if [notifications.connect.project.paused]}} + {{#if [connect.notification.project.paused]}} Your project is now paused {{/if}} - {{#if [notifications.connect.project.submittedForReview]}} + {{#if [connect.notification.project.submittedForReview]}} Your project is now submitted for review {{/if}} diff --git a/emails/src/partials/project-team.html b/emails/src/partials/project-team.html index e9a5dc1..f5dbb21 100644 --- a/emails/src/partials/project-team.html +++ b/emails/src/partials/project-team.html @@ -35,46 +35,46 @@ - {{#if [notifications.connect.project.member.assignedAsOwner]}} + {{#if [connect.notification.project.member.assignedAsOwner]}} {{userFullName}} assigned as project owner {{/if}} - {{#if [notifications.connect.project.member.copilotJoined]}} + {{#if [connect.notification.project.member.copilotJoined]}} {{userFullName}} joined the project as Copilot {{/if}} - {{#if [notifications.connect.project.member.managerJoined]}} + {{#if [connect.notification.project.member.managerJoined]}} {{userFullName}} joined the project as Manager {{/if}} - {{#if [notifications.connect.project.member.removed]}} + {{#if [connect.notification.project.member.removed]}} {{#if [emailToAffectedUser]}} You are removed from the project {{else}} {{userFullName}} left the project {{/if}} {{/if}} - {{#if [notifications.connect.project.member.left]}} + {{#if [connect.notification.project.member.left]}} {{userFullName}} left the project {{/if}} - {{#if [notifications.connect.project.member.joined]}} + {{#if [connect.notification.project.member.joined]}} {{userFullName}} joined the project {{/if}} - {{#if [notifications.connect.project.member.invite.created]}} + {{#if [connect.notification.project.member.invite.created]}} {{#if [isSSO]}} Hi {{userFullName}}, you are invited to join the project {{projectName}}. Please use the link below to sign in and join the project. {{else}} Hi {{userFullName}}, you are invited to join the project {{projectName}}. Please click on the button ("View project on Connect") below to join. {{/if}} {{/if}} - {{#if [notifications.connect.project.member.invite.requested]}} + {{#if [connect.notification.project.member.invite.requested]}} You are requested to add {{userFullName}} as a copilot {{/if}} - {{#if [notifications.connect.project.member.invite.approved]}} + {{#if [connect.notification.project.member.invite.approved]}} {{#if [originator]}} Your request to add invite the member was approved {{else}} Hi {{userFullName}}, you are added as a copilot {{/if}} {{/if}} - {{#if [notifications.connect.project.member.invite.rejected]}} + {{#if [connect.notification.project.member.invite.rejected]}} {{#if [originator]}} Your request to add the member was refused {{else}} @@ -106,7 +106,7 @@ - {{#if notifications.[0].[notifications.connect.project.member.invite.requested]}} + {{#if notifications.[0].[connect.notification.project.member.invite.requested]}} Manage project team diff --git a/emails/src/partials/topics_and_posts.html b/emails/src/partials/topics_and_posts.html index 73e1152..962e5c7 100644 --- a/emails/src/partials/topics_and_posts.html +++ b/emails/src/partials/topics_and_posts.html @@ -25,7 +25,7 @@ {{#each notifications}} - {{#if [notifications.connect.project.post.created]}} + {{#if [connect.notification.project.post.created]}} @@ -47,7 +47,7 @@ {{/if}} - {{#if [notifications.connect.project.topic.created]}} + {{#if [connect.notification.project.topic.created]}}
@@ -69,7 +69,7 @@ {{/if}} - {{#if [notifications.connect.project.topic.deleted]}} + {{#if [connect.notification.project.topic.deleted]}}
@@ -91,7 +91,7 @@ {{/if}} - {{#if [notifications.connect.project.post.mention]}} + {{#if [connect.notification.project.post.mention]}}
@@ -113,7 +113,7 @@ {{/if}} - {{#if [notifications.connect.project.post.edited]}} + {{#if [connect.notification.project.post.edited]}}
@@ -135,7 +135,7 @@ {{/if}} - {{#if [notifications.connect.project.post.deleted]}} + {{#if [connect.notification.project.post.deleted]}}
diff --git a/migrations/v2.0.1.sql b/migrations/v2.0.1.sql new file mode 100644 index 0000000..c745f07 --- /dev/null +++ b/migrations/v2.0.1.sql @@ -0,0 +1,10 @@ + -- rename "topic" column to "topicOld" + ALTER TABLE "public"."NotificationSettings" + RENAME COLUMN "topic" TO "topicOld"; + + ALTER TABLE "public"."NotificationSettings" + ALTER COLUMN "topicOld" DROP NOT NULL; + + -- add "topic" column + ALTER TABLE "public"."NotificationSettings" + ADD COLUMN "topic" character varying(255) NOT NULL; diff --git a/migrations/v2.0.2.sql b/migrations/v2.0.2.sql new file mode 100644 index 0000000..9de9358 --- /dev/null +++ b/migrations/v2.0.2.sql @@ -0,0 +1,36 @@ +UPDATE "Notifications" SET type='connect.notification.project.timeline.milestone.transition.completed' WHERE read='f' AND type='connect.action.timeline.milestone.transition.completed'; +UPDATE "Notifications" SET type='connect.notification.project.product.update.spec' WHERE read='f' AND type='connect.action.project.product.update.spec'; +UPDATE "Notifications" SET type='connect.notification.project.created' WHERE read='f' AND type='notifications.connect.project.created'; +UPDATE "Notifications" SET type='connect.notification.project.post.created' WHERE read='f' AND type='notifications.connect.project.post.created'; +UPDATE "Notifications" SET type='connect.notification.project.phase.transition.active' WHERE read='f' AND type='notifications.connect.project.phase.transition.active'; +UPDATE "Notifications" SET type='connect.notification.project.approved' WHERE read='f' AND type='notifications.connect.project.approved'; +UPDATE "Notifications" SET type='connect.notification.project.post.edited' WHERE read='f' AND type='notifications.connect.project.post.edited'; +UPDATE "Notifications" SET type='connect.notification.project.plan.updated' WHERE read='f' AND type='connect.action.project.plan.updated'; +UPDATE "Notifications" SET type='connect.notification.project.topic.created' WHERE read='f' AND type='notifications.connect.project.topic.created'; +UPDATE "Notifications" SET type='connect.notification.project.member.managerJoined' WHERE read='f' AND type='notifications.connect.project.member.managerJoined'; +UPDATE "Notifications" SET type='connect.notification.project.specificationModified' WHERE read='f' AND type='notifications.connect.project.specificationModified'; +UPDATE "Notifications" SET type='connect.notification.project.canceled' WHERE read='f' AND type='notifications.connect.project.canceled'; +UPDATE "Notifications" SET type='connect.notification.project.active' WHERE read='f' AND type='notifications.connect.project.active'; +UPDATE "Notifications" SET type='connect.notification.project.updated.spec' WHERE read='f' AND type='connect.action.project.updated.spec'; +UPDATE "Notifications" SET type='connect.notification.project.phase.update.payment' WHERE read='f' AND type='notifications.connect.project.phase.update.payment'; +UPDATE "Notifications" SET type='connect.notification.project.linkCreated' WHERE read='f' AND type='notifications.connect.project.linkCreated'; +UPDATE "Notifications" SET type='connect.notification.project.member.invite.rejected' WHERE read='f' AND type='notifications.connect.project.member.invite.rejected'; +UPDATE "Notifications" SET type='connect.notification.project.completed' WHERE read='f' AND type='notifications.connect.project.completed'; +UPDATE "Notifications" SET type='connect.notification.project.phase.update.scope' WHERE read='f' AND type='notifications.connect.project.phase.update.scope'; +UPDATE "Notifications" SET type='connect.notification.project.member.invite.requested' WHERE read='f' AND type='notifications.connect.project.member.invite.requested'; +UPDATE "Notifications" SET type='connect.notification.project.paused' WHERE read='f' AND type='notifications.connect.project.paused'; +UPDATE "Notifications" SET type='connect.notification.project.plan.ready' WHERE read='f' AND type='connect.action.project.plan.ready'; +UPDATE "Notifications" SET type='connect.notification.project.member.copilotJoined' WHERE read='f' AND type='notifications.connect.project.member.copilotJoined'; +UPDATE "Notifications" SET type='connect.notification.project.topic.deleted' WHERE read='f' AND type='notifications.connect.project.topic.deleted'; +UPDATE "Notifications" SET type='connect.notification.project.submittedForReview' WHERE read='f' AND type='notifications.connect.project.submittedForReview'; +UPDATE "Notifications" SET type='connect.notification.project.member.invite.approved' WHERE read='f' AND type='notifications.connect.project.member.invite.approved'; +UPDATE "Notifications" SET type='connect.notification.project.member.assignedAsOwner' WHERE read='f' AND type='notifications.connect.project.member.assignedAsOwner'; +UPDATE "Notifications" SET type='connect.notification.project.phase.transition.completed' WHERE read='f' AND type='notifications.connect.project.phase.transition.completed'; +UPDATE "Notifications" SET type='connect.notification.project.member.removed' WHERE read='f' AND type='notifications.connect.project.member.removed'; +UPDATE "Notifications" SET type='connect.notification.project.timeline.milestone.transition.active' WHERE read='f' AND type='connect.action.timeline.milestone.transition.active'; +UPDATE "Notifications" SET type='connect.notification.project.timeline.milestone.waiting.customer' WHERE read='f' AND type='connect.action.timeline.milestone.waiting.customer'; +UPDATE "Notifications" SET type='connect.notification.project.member.joined' WHERE read='f' AND type='notifications.connect.project.member.joined'; +UPDATE "Notifications" SET type='connect.notification.project.fileUploaded' WHERE read='f' AND type='notifications.connect.project.fileUploaded'; +UPDATE "Notifications" SET type='connect.notification.project.phase.update.progress' WHERE read='f' AND type='notifications.connect.project.phase.update.progress'; +UPDATE "Notifications" SET type='connect.notification.project.post.deleted' WHERE read='f' AND type='notifications.connect.project.post.deleted'; +UPDATE "Notifications" SET type='connect.notification.project.member.left' WHERE read='f' AND type='notifications.connect.project.member.left'; \ No newline at end of file diff --git a/migrations/v2.0.3.sql b/migrations/v2.0.3.sql new file mode 100644 index 0000000..4ace7e8 --- /dev/null +++ b/migrations/v2.0.3.sql @@ -0,0 +1,36 @@ +UPDATE "NotificationSettings" SET topic='connect.notification.project.timeline.milestone.transition.completed' WHERE "topicOld"='connect.action.timeline.milestone.transition.completed'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.product.update.spec' WHERE "topicOld"='connect.action.project.product.update.spec'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.created' WHERE "topicOld"='notifications.connect.project.created'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.post.created' WHERE "topicOld"='notifications.connect.project.post.created'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.phase.transition.active' WHERE "topicOld"='notifications.connect.project.phase.transition.active'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.approved' WHERE "topicOld"='notifications.connect.project.approved'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.post.edited' WHERE "topicOld"='notifications.connect.project.post.edited'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.plan.updated' WHERE "topicOld"='connect.action.project.plan.updated'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.topic.created' WHERE "topicOld"='notifications.connect.project.topic.created'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.managerJoined' WHERE "topicOld"='notifications.connect.project.member.managerJoined'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.specificationModified' WHERE "topicOld"='notifications.connect.project.specificationModified'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.canceled' WHERE "topicOld"='notifications.connect.project.canceled'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.active' WHERE "topicOld"='notifications.connect.project.active'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.updated.spec' WHERE "topicOld"='connect.action.project.updated.spec'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.phase.update.payment' WHERE "topicOld"='notifications.connect.project.phase.update.payment'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.linkCreated' WHERE "topicOld"='notifications.connect.project.linkCreated'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.invite.rejected' WHERE "topicOld"='notifications.connect.project.member.invite.rejected'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.completed' WHERE "topicOld"='notifications.connect.project.completed'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.phase.update.scope' WHERE "topicOld"='notifications.connect.project.phase.update.scope'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.invite.requested' WHERE "topicOld"='notifications.connect.project.member.invite.requested'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.paused' WHERE "topicOld"='notifications.connect.project.paused'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.plan.ready' WHERE "topicOld"='connect.action.project.plan.ready'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.copilotJoined' WHERE "topicOld"='notifications.connect.project.member.copilotJoined'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.topic.deleted' WHERE "topicOld"='notifications.connect.project.topic.deleted'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.submittedForReview' WHERE "topicOld"='notifications.connect.project.submittedForReview'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.invite.approved' WHERE "topicOld"='notifications.connect.project.member.invite.approved'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.assignedAsOwner' WHERE "topicOld"='notifications.connect.project.member.assignedAsOwner'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.phase.transition.completed' WHERE "topicOld"='notifications.connect.project.phase.transition.completed'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.removed' WHERE "topicOld"='notifications.connect.project.member.removed'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.timeline.milestone.transition.active' WHERE "topicOld"='connect.action.timeline.milestone.transition.active'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.timeline.milestone.waiting.customer' WHERE "topicOld"='connect.action.timeline.milestone.waiting.customer'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.joined' WHERE "topicOld"='notifications.connect.project.member.joined'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.fileUploaded' WHERE "topicOld"='notifications.connect.project.fileUploaded'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.phase.update.progress' WHERE "topicOld"='notifications.connect.project.phase.update.progress'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.post.deleted' WHERE "topicOld"='notifications.connect.project.post.deleted'; +UPDATE "NotificationSettings" SET topic='connect.notification.project.member.left' WHERE "topicOld"='notifications.connect.project.member.left';