diff options
author | Hugues Hiegel <root@paranoid> | 2015-03-11 16:55:04 +0100 |
---|---|---|
committer | Hugues Hiegel <root@paranoid> | 2015-03-11 16:55:04 +0100 |
commit | 99f904adcc37d93c90defcd8ce898598e25be212 (patch) | |
tree | 60a6c7b7b9cf012d6c0e8dcf5c7f4fe0a5b6fc49 /plugin_manager/SQL/pgsql.initial.sql | |
parent | b2034fdfec040a67988e543a911208ef2491ce7a (diff) |
Diffstat (limited to 'plugin_manager/SQL/pgsql.initial.sql')
-rw-r--r-- | plugin_manager/SQL/pgsql.initial.sql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugin_manager/SQL/pgsql.initial.sql b/plugin_manager/SQL/pgsql.initial.sql new file mode 100644 index 0000000..5fa498b --- /dev/null +++ b/plugin_manager/SQL/pgsql.initial.sql @@ -0,0 +1,17 @@ +CREATE TABLE plugin_manager ( + id serial NOT NULL, + user_id integer NOT NULL + REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE, + conf text NOT NULL, + value text, + type text, + PRIMARY KEY (id) +); +CREATE INDEX ix_plugin_manager_user_id ON users (user_id); + +CREATE TABLE IF NOT EXISTS "system" ( + name varchar(64) NOT NULL PRIMARY KEY, + value text +); + +INSERT INTO "system" (name, value) VALUES ('myrc_plugin_manager', 'initial');
\ No newline at end of file |