core: Separate SQL current and upgrade scripts
[quassel.git] / src / core / SQL / SQLite / version / 4 / upgrade_010_create_buffertable.sql
diff --git a/src/core/SQL/SQLite/version/4/upgrade_010_create_buffertable.sql b/src/core/SQL/SQLite/version/4/upgrade_010_create_buffertable.sql
new file mode 100644 (file)
index 0000000..9954c58
--- /dev/null
@@ -0,0 +1,8 @@
+CREATE TABLE buffer (
+       bufferid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+       userid INTEGER NOT NULL,
+       groupid INTEGER,
+       networkid INTEGER NOT NULL,
+       buffername TEXT NOT NULL,
+       buffercname TEXT NOT NULL -- CANONICAL BUFFER NAME (lowercase version)
+)
\ No newline at end of file