diff options
author | Christian Weiske <cweiske@cweiske.de> | 2011-05-04 08:02:33 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2011-05-04 08:02:33 +0200 |
commit | dda05f5cc7e1d984564e5154f6ceda762c2224a3 (patch) | |
tree | e72e5b7df28d99e39300cb77eadca414ab9f66cd /data/tables.sql | |
parent | 69e58d8632198cf3eb39317d9382007731a10141 (diff) | |
download | semanticscuttle-dda05f5cc7e1d984564e5154f6ceda762c2224a3.tar.gz semanticscuttle-dda05f5cc7e1d984564e5154f6ceda762c2224a3.tar.bz2 |
SQL schema version table to ease future database upgrades
Diffstat (limited to 'data/tables.sql')
-rw-r--r-- | data/tables.sql | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/data/tables.sql b/data/tables.sql index c61c2f5..7a9c5bd 100644 --- a/data/tables.sql +++ b/data/tables.sql @@ -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'); |