Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE VIEW "libertybans_applicable_bans" AS
- SELECT "puns"."id", "puns"."type", "puns"."victim_type", "puns"."victim_uuid", "puns"."victim_address", "puns"."operator",
- "puns"."reason", "puns"."scope", "puns"."start", "puns"."end", "addrs"."uuid", "addrs"."address"
- FROM "libertybans_simple_bans" AS "puns"
- INNER JOIN "libertybans_addresses" AS "addrs"
- ON ("puns"."victim_type" = 0 AND "puns"."victim_uuid" = "addrs"."uuid"
- OR "puns"."victim_type" = 1 AND "puns"."victim_address" = "addrs"."address"
- OR "puns"."victim_type" = 2 AND ("puns"."victim_uuid" = "addrs"."uuid" OR "puns"."victim_address" = "addrs"."address"));
- CREATE VIEW "libertybans_applicable_mutes" AS
- SELECT "puns"."id", "puns"."type", "puns"."victim_type", "puns"."victim_uuid", "puns"."victim_address", "puns"."operator",
- "puns"."reason", "puns"."scope", "puns"."start", "puns"."end", "addrs"."uuid", "addrs"."address"
- FROM "libertybans_simple_mutes" AS "puns"
- INNER JOIN "libertybans_addresses" AS "addrs"
- ON ("puns"."victim_type" = 0 AND "puns"."victim_uuid" = "addrs"."uuid"
- OR "puns"."victim_type" = 1 AND "puns"."victim_address" = "addrs"."address"
- OR "puns"."victim_type" = 2 AND ("puns"."victim_uuid" = "addrs"."uuid" OR "puns"."victim_address" = "addrs"."address"));
- CREATE VIEW "libertybans_applicable_warns" AS
- SELECT "puns"."id", "puns"."type", "puns"."victim_type", "puns"."victim_uuid", "puns"."victim_address", "puns"."operator",
- "puns"."reason", "puns"."scope", "puns"."start", "puns"."end", "addrs"."uuid", "addrs"."address"
- FROM "libertybans_simple_warns" AS "puns"
- INNER JOIN "libertybans_addresses" AS "addrs"
- ON ("puns"."victim_type" = 0 AND "puns"."victim_uuid" = "addrs"."uuid"
- OR "puns"."victim_type" = 1 AND "puns"."victim_address" = "addrs"."address"
- OR "puns"."victim_type" = 2 AND ("puns"."victim_uuid" = "addrs"."uuid" OR "puns"."victim_address" = "addrs"."address"));
- CREATE VIEW "libertybans_applicable_active" AS
- SELECT "id", "type", "victim_type", "victim_uuid", "victim_address", "operator", "reason", "scope", "start", "end", "uuid", "address"
- FROM "libertybans_applicable_bans"
- UNION ALL
- SELECT "id", "type", "victim_type", "victim_uuid", "victim_address", "operator", "reason", "scope", "start", "end", "uuid", "address"
- FROM "libertybans_applicable_mutes"
- UNION ALL
- SELECT "id", "type", "victim_type", "victim_uuid", "victim_address", "operator", "reason", "scope", "start", "end", "uuid", "address"
- FROM "libertybans_applicable_warns";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement