Initial release
[websub-hub] / src / db / sqlite / sql / schema / init.sql
diff --git a/src/db/sqlite/sql/schema/init.sql b/src/db/sqlite/sql/schema/init.sql
new file mode 100644 (file)
index 0000000..2b8cd70
--- /dev/null
@@ -0,0 +1,11 @@
+--
+BEGIN;
+CREATE TABLE _meta_schema_version (
+       major INTEGER NOT NULL,
+       minor INTEGER NOT NULL,
+       patch INTEGER NOT NULL,
+       applied INTEGER NOT NULL DEFAULT (strftime('%s', 'now')),
+       PRIMARY KEY (major, minor, patch)
+) WITHOUT ROWID;
+INSERT INTO _meta_schema_version (major, minor, patch) VALUES (0, 0, 0);
+COMMIT;