You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: coderd/database/migrations/000262_improve_notification_templates.down.sql
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ UPDATE notification_templates
14
14
SET
15
15
body_template = E'Hi {{.UserName}},\nUser account **{{.Labels.activated_account_name}}** has been activated.'
16
16
WHERE
17
-
id ='9f5af851-8408-4e73-a7a1-c6502ba46689';
17
+
id ='9f5af851-8408-4e73-a7a1-c6502ba46689';
18
18
19
19
UPDATE notification_templates
20
20
SET
@@ -24,13 +24,13 @@ WHERE
24
24
25
25
UPDATE notification_templates
26
26
SET
27
-
body_template = E'Hi {{.UserName}},\n\New user account **{{.Labels.created_account_name}}** has been created.'
27
+
body_template = E'Hi {{.UserName}},\n\New user account **{{.Labels.created_account_name}}** has been created.'
28
28
WHERE
29
29
id ='4e19c0ac-94e1-4532-9515-d1801aa283b2';
30
30
31
31
UPDATE notification_templates
32
32
SET
33
-
body_template = E'Hi {{.UserName}},\n\nUser account **{{.Labels.deleted_account_name}}** has been deleted.'
33
+
body_template = E'Hi {{.UserName}},\n\nUser account **{{.Labels.deleted_account_name}}** has been deleted.'
34
34
WHERE
35
35
id ='f44d9314-ad03-4bc8-95d0-5cad491da6b6';
36
36
@@ -43,9 +43,10 @@ WHERE
43
43
44
44
UPDATE notification_templates
45
45
SET body_template = E'Hi {{.UserName}}\n'||
46
-
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n'||
47
-
E'Reason for update: **{{.Labels.template_version_message}}**'
48
-
WHERE id ='c34a0c09-0704-4cac-bd1c-0c0146811c2b';
46
+
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n'||
47
+
E'Reason for update: **{{.Labels.template_version_message}}**'
48
+
WHERE
49
+
id ='c34a0c09-0704-4cac-bd1c-0c0146811c2b';
49
50
50
51
UPDATE notification_templates
51
52
SET
@@ -55,7 +56,7 @@ WHERE
55
56
56
57
UPDATE notification_templates
57
58
SET
58
-
body_template = E'Hi {{.UserName}}\n\nYour workspace **{{.Labels.name}}** was deleted.\nThe specified reason was "**{{.Labels.reason}}{{ if .Labels.initiator }} ({{ .Labels.initiator }}){{end}}**".'
59
+
body_template = E'Hi {{.UserName}}\n\nYour workspace **{{.Labels.name}}** was deleted.\nThe specified reason was "**{{.Labels.reason}}{{ if .Labels.initiator }} ({{ .Labels.initiator }}){{end}}**".'
59
60
WHERE
60
61
id ='f517da0b-cdc9-410f-ab89-a86107c420ed';
61
62
@@ -78,6 +79,6 @@ WHERE
78
79
79
80
UPDATE notification_templates
80
81
SET
81
-
body_template = E'Hi {{.UserName}},\n\nA manual build of the workspace **{{.Labels.name}}** using the template **{{.Labels.template_name}}** failed (version: **{{.Labels.template_version_name}}**).\nThe workspace build was initiated by **{{.Labels.initiator}}**.'
82
+
body_template = E'Hi {{.UserName}},\n\nA manual build of the workspace **{{.Labels.name}}** using the template **{{.Labels.template_name}}** failed (version: **{{.Labels.template_version_name}}**).\nThe workspace build was initiated by **{{.Labels.initiator}}**.'
Copy file name to clipboardExpand all lines: coderd/database/migrations/000262_improve_notification_templates.up.sql
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
UPDATE notification_templates
5
5
SET
6
6
body_template = E'Hi {{.UserName}},\n\n'||-- Add a \n
7
-
E'User account **{{.Labels.suspended_account_name}}** has been suspended.\n\n'||
7
+
E'User account **{{.Labels.suspended_account_name}}** has been suspended.\n\n'||
8
8
-- Mention the real name of the user who suspended the account:
9
-
E'The newly suspended account belongs to **{{.Labels.suspended_account_user_name}}** and was suspended by **{{.Labels.account_suspender_user_name}}**.'
9
+
E'The newly suspended account belongs to **{{.Labels.suspended_account_user_name}}** and was suspended by **{{.Labels.account_suspender_user_name}}**.'
10
10
WHERE
11
11
id ='b02ddd82-4733-4d02-a2d7-c36f3598997d';
12
12
@@ -15,19 +15,19 @@ UPDATE notification_templates
15
15
SET
16
16
body_template = E'Hi {{.UserName}},\n\n'||-- Add a \n
17
17
-- Mention who suspended the account:
18
-
E'Your account **{{.Labels.suspended_account_name}}** has been suspended by **{{.Labels.account_suspender_user_name}}**'
18
+
E'Your account **{{.Labels.suspended_account_name}}** has been suspended by **{{.Labels.account_suspender_user_name}}**.'
19
19
WHERE
20
20
id ='6a2f0609-9b69-4d36-a989-9f5925b6cbff';
21
21
22
22
-- UserAccountActivated
23
23
UPDATE notification_templates
24
24
SET
25
25
body_template = E'Hi {{.UserName}},\n\n'||-- Add a \n
26
-
E'User account **{{.Labels.activated_account_name}}** has been activated.\n\n'||
26
+
E'User account **{{.Labels.activated_account_name}}** has been activated.\n\n'||
27
27
-- Mention the real name of the user who activated the account:
28
-
E'The newly activated account belongs to **{{.Labels.activated_account_user_name}}** and was activated by **{{.Labels.account_activator_user_name}}**.'
28
+
E'The newly activated account belongs to **{{.Labels.activated_account_user_name}}** and was activated by **{{.Labels.account_activator_user_name}}**.'
29
29
WHERE
30
-
id ='9f5af851-8408-4e73-a7a1-c6502ba46689';
30
+
id ='9f5af851-8408-4e73-a7a1-c6502ba46689';
31
31
32
32
-- YourAccountActivated
33
33
UPDATE notification_templates
@@ -41,17 +41,17 @@ WHERE
41
41
-- UserAccountCreated
42
42
UPDATE notification_templates
43
43
SET
44
-
body_template = E'Hi {{.UserName}},\n\n'||
44
+
body_template = E'Hi {{.UserName}},\n\n'||
45
45
E'New user account **{{.Labels.created_account_name}}** has been created.\n\n'||
46
46
-- Mention the real name of the user who created the account:
47
-
E'This new user account was created for **{{.Labels.created_account_user_name}}** by **{{.Labels.account_creator}}**'
47
+
E'This new user account was created for **{{.Labels.created_account_user_name}}** by **{{.Labels.account_creator}}**.'
48
48
WHERE
49
49
id ='4e19c0ac-94e1-4532-9515-d1801aa283b2';
50
50
51
51
-- UserAccountDeleted
52
52
UPDATE notification_templates
53
53
SET
54
-
body_template = E'Hi {{.UserName}},\n\n'||
54
+
body_template = E'Hi {{.UserName}},\n\n'||
55
55
E'User account **{{.Labels.deleted_account_name}}** has been deleted.\n\n'||
56
56
-- Mention the real name of the user who deleted the account:
57
57
E'The deleted account belonged to **{{.Labels.deleted_account_user_name}}** and was deleted by **{{.Labels.account_deleter_user_name}}**.'
@@ -72,8 +72,8 @@ WHERE
72
72
UPDATE notification_templates
73
73
SET body_template = E'Hi {{.UserName}},\n\n'||-- Add a comma and a \n
74
74
-- Add a \n:
75
-
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n\n'||
76
-
E'Reason for update: **{{.Labels.template_version_message}}**'
75
+
E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n\n'||
76
+
E'Reason for update: **{{.Labels.template_version_message}}**.'
77
77
WHERE
78
78
id ='c34a0c09-0704-4cac-bd1c-0c0146811c2b';
79
79
@@ -119,7 +119,7 @@ WHERE
119
119
-- WorkspaceManualBuildFailed
120
120
UPDATE notification_templates
121
121
SET
122
-
body_template = E'Hi {{.UserName}},\n\n'||
122
+
body_template = E'Hi {{.UserName}},\n\n'||
123
123
E'A manual build of the workspace **{{.Labels.name}}** using the template **{{.Labels.template_name}}** failed (version: **{{.Labels.template_version_name}}**).\n\n'||
124
124
-- Mention template display name:
125
125
E'The template''s display name was **{{.Labels.template_display_name}}**. '||
0 commit comments