From 99f904adcc37d93c90defcd8ce898598e25be212 Mon Sep 17 00:00:00 2001
From: Hugues Hiegel <root@paranoid>
Date: Wed, 11 Mar 2015 16:55:04 +0100
Subject: Lot of plugins

---
 plugin_manager/SQL/mysql.initial.sql | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 plugin_manager/SQL/mysql.initial.sql

(limited to 'plugin_manager/SQL/mysql.initial.sql')

diff --git a/plugin_manager/SQL/mysql.initial.sql b/plugin_manager/SQL/mysql.initial.sql
new file mode 100644
index 0000000..e7553d5
--- /dev/null
+++ b/plugin_manager/SQL/mysql.initial.sql
@@ -0,0 +1,21 @@
+CREATE TABLE IF NOT EXISTS `plugin_manager` (
+  `id` int(10) NOT NULL AUTO_INCREMENT,
+  `user_id` int(10) unsigned NOT NULL,
+  `conf` text NOT NULL,
+  `value` text,
+  `type` text,
+  PRIMARY KEY (`id`),
+  KEY `user_id` (`user_id`),
+  KEY `user_id_index` (`user_id`)
+) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+CREATE TABLE IF NOT EXISTS `system` (
+ `name` varchar(64) NOT NULL,
+ `value` mediumtext,
+ PRIMARY KEY(`name`)
+);
+
+INSERT INTO `system` (name, value) VALUES ('myrc_plugin_manager', 'initial');
+
+ALTER TABLE `plugin_manager`
+  ADD CONSTRAINT `user_id_fk_plugin_manager` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
-- 
cgit v1.2.3

