Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e741c43

Browse files
committed
chore: remove redundant escaping in migration
1 parent 2a4d740 commit e741c43

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

coderd/database/migrations/000262_improve_notification_templates.down.sql

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ WHERE
66

77
UPDATE notification_templates
88
SET
9-
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', E'Hi {{.UserName}},')::text
9+
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', 'Hi {{.UserName}},')::text
1010
WHERE
1111
id = '9f5af851-8408-4e73-a7a1-c6502ba46689';
1212

1313
UPDATE notification_templates
1414
SET
15-
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', E'Hi {{.UserName}},')::text
15+
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', 'Hi {{.UserName}},')::text
1616
WHERE
1717
id = 'b02ddd82-4733-4d02-a2d7-c36f3598997d';
1818

1919
UPDATE notification_templates
2020
SET
21-
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', E'Hi {{.UserName}}')::text
21+
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', 'Hi {{.UserName}}')::text
2222
WHERE
2323
id = 'c34a0c09-0704-4cac-bd1c-0c0146811c2b';
2424

@@ -30,43 +30,43 @@ WHERE
3030

3131
UPDATE notification_templates
3232
SET
33-
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', E'Hi {{.UserName}}')::text
33+
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},\n', 'Hi {{.UserName}}')::text
3434
WHERE
3535
id = '381df2a9-c0c0-4749-420f-80a9280c66f9';
3636

3737
UPDATE notification_templates
3838
SET
39-
body_template = REPLACE(body_template::text, E'\nThe specified reason', E'The specified reason')::text
39+
body_template = REPLACE(body_template::text, E'\nThe specified reason', 'The specified reason')::text
4040
WHERE
4141
id = '381df2a9-c0c0-4749-420f-80a9280c66f9';
4242

4343
UPDATE notification_templates
4444
SET
45-
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},', E'Hi {{.UserName}}')::text
45+
body_template = REPLACE(body_template::text, 'Hi {{.UserName}},', 'Hi {{.UserName}}')::text
4646
WHERE
4747
id = 'f517da0b-cdc9-410f-ab89-a86107c420ed';
4848

4949
UPDATE notification_templates
5050
SET
51-
body_template = REPLACE(body_template::text, E'\nThe specified reason', E'The specified reason')::text
51+
body_template = REPLACE(body_template::text, E'\nThe specified reason', 'The specified reason')::text
5252
WHERE
5353
id = 'f517da0b-cdc9-410f-ab89-a86107c420ed';
5454

5555
UPDATE notification_templates
5656
SET
57-
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},', E'Hi {{.UserName}}')::text
57+
body_template = REPLACE(body_template::text, 'Hi {{.UserName}},', 'Hi {{.UserName}}')::text
5858
WHERE
5959
id = '0ea69165-ec14-4314-91f1-69566ac3c5a0';
6060

6161
UPDATE notification_templates
6262
SET
63-
body_template = REPLACE(body_template::text, E'Hi {{.UserName}},', E'Hi {{.UserName}}')::text
63+
body_template = REPLACE(body_template::text, 'Hi {{.UserName}},', 'Hi {{.UserName}}')::text
6464
WHERE
6565
id = '51ce2fdf-c9ca-4be1-8d70-628674f9bc42';
6666

6767
UPDATE notification_templates
6868
SET
69-
body_template = REPLACE(body_template::text, E'\nThe workspace build was initiated by', E'The workspace build was initiated by')::text
69+
body_template = REPLACE(body_template::text, E'\nThe workspace build was initiated by', 'The workspace build was initiated by')::text
7070
WHERE
7171
id = '2faeee0f-26cb-4e96-821c-85ccb9f71513';
7272

0 commit comments

Comments
 (0)