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/sqlite.initial.sql | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 plugin_manager/SQL/sqlite.initial.sql

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

diff --git a/plugin_manager/SQL/sqlite.initial.sql b/plugin_manager/SQL/sqlite.initial.sql
new file mode 100644
index 0000000..c1b77a8
--- /dev/null
+++ b/plugin_manager/SQL/sqlite.initial.sql
@@ -0,0 +1,11 @@
+CREATE TABLE IF NOT EXISTS 'plugin_manager' ( 'id' integer NOT NULL PRIMARY KEY AUTOINCREMENT, 'user_id' INT(10) NOT NULL, 'conf' TEXT NOT NULL, 'value' TEXT, 'type' TEXT,
+    CONSTRAINT 'plugin_manager_ibfk_1' FOREIGN KEY ('user_id') REFERENCES 'users'
+      ('user_id') ON DELETE
+      CASCADE ON UPDATE CASCADE );
+      
+CREATE TABLE IF NOT EXISTS 'system' (
+  name varchar(64) NOT NULL PRIMARY KEY,
+  value text NOT NULL
+);
+
+INSERT INTO system (name, value) VALUES ('myrc_plugin_manager', 'initial');
\ No newline at end of file
-- 
cgit v1.2.3

