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/perm_rename.sql | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 sql/perm_rename.sql

(limited to 'sql/perm_rename.sql')

diff --git a/sql/perm_rename.sql b/sql/perm_rename.sql
new file mode 100644
index 0000000..6d0010a
--- /dev/null
+++ b/sql/perm_rename.sql
@@ -0,0 +1,5 @@
+update perm_channel set perm_id = :new_perm_name: where perm_id = :old_perm_name:;
+update perm_channel_clients set perm_id = :new_perm_name: where perm_id = :old_perm_name:;
+update perm_channel_groups set perm_id = :new_perm_name: where perm_id = :old_perm_name:;
+update perm_client set perm_id = :new_perm_name: where perm_id = :old_perm_name:;
+update perm_server_group set perm_id = :new_perm_name: where perm_id = :old_perm_name:;
\ No newline at end of file
-- 
cgit v1.2.3

