We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05584a commit b4a9a12Copy full SHA for b4a9a12
migrations/V87__fix_lobby_ban_view.sql
@@ -0,0 +1,8 @@
1
+DROP VIEW `lobby_ban`;
2
+
3
+CREATE VIEW `lobby_ban` AS
4
+SELECT `ban`.`player_id` AS `idUser`,
5
+ `ban`.`reason` AS `reason`,
6
+ coalesce(`ban`.`revoke_time`, `ban`.`expires_at`, cast('2999-12-31' as date)) AS `expires_at`
7
+FROM `ban`
8
+WHERE (`ban`.`level` = 'GLOBAL');
0 commit comments