Mercurial > hg > fapweb
changeset 394:560c709ecfad
Upgrade procedure for db v8.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Dec 2013 12:04:41 +0200 |
parents | 14cdbeb331b6 |
children | 9f95b27b8e52 |
files | createdb.php |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/createdb.php Thu Dec 05 12:03:57 2013 +0200 +++ b/createdb.php Thu Dec 05 12:04:41 2013 +0200 @@ -11,7 +11,7 @@ die(); } -$dbVersion = 7; +$dbVersion = 8; $dbMeta = array( "dbVersion" => array(VT_INT, $dbVersion, "Database version"), @@ -537,6 +537,9 @@ if ($currVersion < 7) stExecSQL("DROP TABLE displayListSlides"); + + if ($currVersion < 8) + stExecSQL("DROP TABLE displayVars"); // Create tables if (!stCreateTables(TRUE))