From 39081f84a402aebb52d98a43e4675c90135cea9b Mon Sep 17 00:00:00 2001
From: Alexander Sulfrian <alexander@sulfrian.net>
Date: Wed, 7 Dec 2011 19:06:52 +0100
Subject: added sql files

---
 sql/channel_delete.sql | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 sql/channel_delete.sql

(limited to 'sql/channel_delete.sql')

diff --git a/sql/channel_delete.sql b/sql/channel_delete.sql
new file mode 100644
index 0000000..f87412b
--- /dev/null
+++ b/sql/channel_delete.sql
@@ -0,0 +1,6 @@
+delete from channels where channel_id=:channel_id:;
+delete from channel_properties where id=:channel_id:;
+delete from group_channel_to_client where server_id=:server_id: and id2=:channel_id:;
+delete from perm_channel where server_id=:server_id: and id1=:channel_id:;
+delete from perm_channel_clients where server_id=:server_id: and id1=:channel_id:;
+delete from tokens where token_type=1 and token_id2=:channel_id:;
\ No newline at end of file
-- 
cgit v1.2.3

