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

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

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

diff --git a/db_version/SQL/mysql.initial.sql b/db_version/SQL/mysql.initial.sql
new file mode 100644
index 0000000..bb10b47
--- /dev/null
+++ b/db_version/SQL/mysql.initial.sql
@@ -0,0 +1,13 @@
+CREATE TABLE IF NOT EXISTS `myrc` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `user_id` int(10) unsigned NOT NULL,
+  PRIMARY KEY (`id`),
+  KEY `user_id` (`user_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+ALTER TABLE `myrc`
+  ADD CONSTRAINT `myrc_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+  
+CREATE INDEX myrc_idx ON myrc (`user_id`);
+
+DROP TABLE `myrc`;
\ No newline at end of file
-- 
cgit v1.2.3

