Add migration files for the extensions.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Sat, 16 Oct 2010 21:46:50 +0000 (17:46 -0400)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Sat, 16 Oct 2010 21:46:50 +0000 (17:46 -0400)
migrations/103-down-extensions.sql [new file with mode: 0644]
migrations/103-up-extensions.sql [new file with mode: 0644]

diff --git a/migrations/103-down-extensions.sql b/migrations/103-down-extensions.sql
new file mode 100644 (file)
index 0000000..a0797df
--- /dev/null
@@ -0,0 +1 @@
+DROP TABLE plc_db_extensions;
diff --git a/migrations/103-up-extensions.sql b/migrations/103-up-extensions.sql
new file mode 100644 (file)
index 0000000..c411049
--- /dev/null
@@ -0,0 +1,6 @@
+CREATE TABLE plc_db_extensions (
+    name text NOT NULL PRIMARY KEY,
+    version integer NOT NULL
+) WITH OIDS;
+
+UPDATE plc_db_version SET subversion = 103;