summaryrefslogblamecommitdiffstats
path: root/sql/perm_delete_by_serverid.sql
blob: ae52b559f96dee3dd90ddfa04e9e1e970d4c284f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                  


                                                                                                      
delete from perm_channel where server_id = :server_id:;
delete from perm_channel_clients where server_id = :server_id:;
delete from perm_channel_groups where server_id = :server_id:;
delete from perm_client where server_id = :server_id:;
delete from perm_server_group where server_id = :server_id:;
delete from group_channel_to_client where server_id = :server_id:;
delete from group_server_to_client where server_id = :server_id:;
delete from groups_channel where server_id = :server_id:;
delete from groups_server where server_id = :server_id:;
delete from tokens where server_id = :server_id:;
update client_properties set value = 0 where ident= 'client_icon_id' and server_id= :server_id:;
update channel_properties set value = 0 where ident= 'channel_icon_id' and server_id= :server_id:;
update server_properties set value = 0 where ident= 'virtualserver_icon_id' and server_id= :server_id:;