Skip to content

Commit

Permalink
Fix view replacement on postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
A248 committed Sep 1, 2023
1 parent 485dbfb commit fe0358d
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ ${alterviewstatement} "${tableprefix}simple_bans" AS
SELECT "puns"."id", "puns"."type",
"victims"."type" AS "victim_type", "victims"."uuid" AS "victim_uuid", "victims"."address" AS "victim_address",
"puns"."operator", "puns"."reason",
(CASE
CAST((CASE
WHEN "puns"."scope_id" IS NULL THEN ''
ELSE "scopes"."value"
END) AS "scope",
END) as CHARACTER VARYING(32)) AS "scope",
"puns"."start", "puns"."end",
(CASE
WHEN "tracks"."namespace" IS NULL THEN NULL
Expand Down Expand Up @@ -59,10 +59,10 @@ ${alterviewstatement} "${tableprefix}simple_mutes" AS
SELECT "puns"."id", "puns"."type",
"victims"."type" AS "victim_type", "victims"."uuid" AS "victim_uuid", "victims"."address" AS "victim_address",
"puns"."operator", "puns"."reason",
(CASE
CAST((CASE
WHEN "puns"."scope_id" IS NULL THEN ''
ELSE "scopes"."value"
END) AS "scope",
END) as CHARACTER VARYING(32)) AS "scope",
"puns"."start", "puns"."end",
(CASE
WHEN "tracks"."namespace" IS NULL THEN NULL
Expand Down Expand Up @@ -98,10 +98,10 @@ ${alterviewstatement} "${tableprefix}simple_warns" AS
SELECT "puns"."id", "puns"."type",
"victims"."type" AS "victim_type", "victims"."uuid" AS "victim_uuid", "victims"."address" AS "victim_address",
"puns"."operator", "puns"."reason",
(CASE
CAST((CASE
WHEN "puns"."scope_id" IS NULL THEN ''
ELSE "scopes"."value"
END) AS "scope",
END) as CHARACTER VARYING(32)) AS "scope",
"puns"."start", "puns"."end",
(CASE
WHEN "tracks"."namespace" IS NULL THEN NULL
Expand Down Expand Up @@ -137,10 +137,10 @@ ${alterviewstatement} "${tableprefix}simple_history" AS
SELECT "puns"."id", "puns"."type",
"victims"."type" AS "victim_type", "victims"."uuid" AS "victim_uuid", "victims"."address" AS "victim_address",
"puns"."operator", "puns"."reason",
(CASE
CAST((CASE
WHEN "puns"."scope_id" IS NULL THEN ''
ELSE "scopes"."value"
END) AS "scope",
END) as CHARACTER VARYING(32)) AS "scope",
"puns"."start", "puns"."end",
(CASE
WHEN "tracks"."namespace" IS NULL THEN NULL
Expand Down

0 comments on commit fe0358d

Please sign in to comment.