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

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

diff --git a/plugin_manager/SQL/mssql.initial.sql b/plugin_manager/SQL/mssql.initial.sql
new file mode 100644
index 0000000..f800588
--- /dev/null
+++ b/plugin_manager/SQL/mssql.initial.sql
@@ -0,0 +1,20 @@
+IF NOT EXISTS (SELECT * FROM sysobjects WHERE id = object_id(N'[dbo].[plugin_manager]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
+CREATE TABLE [plugin_manager] (
+  [id] int NOT NULL IDENTITY(1,1),
+  [conf] nvarchar(MAX) NOT NULL,
+  [value] nvarchar(MAX),
+  [type] nvarchar(MAX),
+  PRIMARY KEY ([id])
+)
+GO
+
+IF NOT EXISTS (SELECT * FROM sysobjects WHERE id = object_id(N'[dbo].[system]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
+CREATE TABLE [system] (
+ [name] nvarchar(64) NOT NULL,
+ [value] nvarchar(MAX),
+ PRIMARY KEY([name])
+)
+GO
+
+INSERT INTO [system] (name, value) VALUES ('myrc_plugin_manager', 'initial|20131209')
+GO
\ No newline at end of file
-- 
cgit v1.2.3

