]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
SQL schema version table to ease future database upgrades
authorChristian Weiske <cweiske@cweiske.de>
Wed, 4 May 2011 06:02:33 +0000 (08:02 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 4 May 2011 06:02:33 +0000 (08:02 +0200)
data/schema/6.sql [new file with mode: 0644]
data/tables.sql
doc/ChangeLog
doc/UPGRADE.txt

diff --git a/data/schema/6.sql b/data/schema/6.sql
new file mode 100644 (file)
index 0000000..4ae7cb9
--- /dev/null
@@ -0,0 +1,4 @@
+CREATE TABLE `sc_version` (
+  `schema_version` int(11) NOT NULL
+) DEFAULT CHARSET=utf8;
+INSERT INTO `sc_version` (`schema_version`) VALUES ('6');
index c61c2f5baf8903b7f8daf23a04bb232c75b1b0af..7a9c5bdf9d04caecc0e38b9639b5c318ba00c6df 100644 (file)
@@ -182,4 +182,10 @@ CREATE TABLE `sc_votes` (
   UNIQUE KEY `bid_2` (`bId`,`uId`),
   KEY `bid` (`bId`),
   KEY `uid` (`uId`)
-) CHARACTER SET utf8 COLLATE utf8_general_ci ;
\ No newline at end of file
+) CHARACTER SET utf8 COLLATE utf8_general_ci ;
+
+
+CREATE TABLE `sc_version` (
+  `schema_version` int(11) NOT NULL
+) DEFAULT CHARSET=utf8;
+INSERT INTO `sc_version` (`schema_version`) VALUES ('6');
index d9b6f57fd21591e61ebeb497b4645b343a070344..a54e71e7bf30888d76ea42ac6a46a820b3c8f86e 100644 (file)
@@ -16,6 +16,7 @@ ChangeLog for SemantiScuttle
 - Fix privacy issue when fetching tags of several users
 - Only URLs with an allowed protocol may be added to the database
 - Support HTTPS connections when $root is not configured
+- SQL schema version table to ease future database upgrades
 
 
 0.97.2 - 2011-02-17
index c4470f96bc3be0c877da192aa06c0b61a029c30e..3be6654835ad5438721d3b77b62850c3ad6f466e 100644 (file)
@@ -2,6 +2,17 @@ Upgrading SemanticScuttle from a previous version
 =================================================
 
 
+From version 0.97 to 0.98
+-------------------------
+Database updates: Apply data/schema/6.sql or do the following:
+
+    CREATE TABLE `sc_version` (
+      `schema_version` int(11) NOT NULL
+    ) DEFAULT CHARSET=utf8;
+
+    INSERT INTO `sc_version` (`schema_version`) VALUES ('6');
+
+
 From version 0.96 to 0.97
 -------------------------
 No database changes necessary.