summaryrefslogtreecommitdiff
path: root/www/wiki/maintenance/postgres/archives/patch-slot_roles-table.sql
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/maintenance/postgres/archives/patch-slot_roles-table.sql')
-rw-r--r--www/wiki/maintenance/postgres/archives/patch-slot_roles-table.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/wiki/maintenance/postgres/archives/patch-slot_roles-table.sql b/www/wiki/maintenance/postgres/archives/patch-slot_roles-table.sql
new file mode 100644
index 00000000..3e71abaf
--- /dev/null
+++ b/www/wiki/maintenance/postgres/archives/patch-slot_roles-table.sql
@@ -0,0 +1,7 @@
+CREATE SEQUENCE slot_roles_role_id_seq;
+CREATE TABLE slot_roles (
+ role_id SMALLINT NOT NULL PRIMARY KEY DEFAULT nextval('slot_roles_role_id_seq'),
+ role_name TEXT NOT NULL
+);
+
+CREATE UNIQUE INDEX role_name ON slot_roles (role_name); \ No newline at end of file