Skip to content

Commit

Permalink
Fix DDL queries
Browse files Browse the repository at this point in the history
  • Loading branch information
A248 committed Sep 12, 2023
1 parent f38a6ae commit dbfd54a
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",
CAST((CASE
(CASE
WHEN "puns"."scope_id" IS NULL THEN ''
ELSE "scopes"."value"
END) as CHARACTER VARYING(32)) AS "scope",
END) 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",
CAST((CASE
(CASE
WHEN "puns"."scope_id" IS NULL THEN ''
ELSE "scopes"."value"
END) as CHARACTER VARYING(32)) AS "scope",
END) 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",
CAST((CASE
(CASE
WHEN "puns"."scope_id" IS NULL THEN ''
ELSE "scopes"."value"
END) as CHARACTER VARYING(32)) AS "scope",
END) 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",
CAST((CASE
(CASE
WHEN "puns"."scope_id" IS NULL THEN ''
ELSE "scopes"."value"
END) as CHARACTER VARYING(32)) AS "scope",
END) AS "scope",
"puns"."start", "puns"."end",
(CASE
WHEN "tracks"."namespace" IS NULL THEN NULL
Expand Down

0 comments on commit dbfd54a

Please sign in to comment.