From: <tr...@us...> - 2003-02-13 12:23:59
|
Update of /cvsroot/basedb/basedb/bin In directory sc8-pr-cvs1:/tmp/cvs-serv25703/bin Modified Files: dbmigrate_107_to_12.php startBase.php Log Message: Bumped schema version Index: dbmigrate_107_to_12.php =================================================================== RCS file: /cvsroot/basedb/basedb/bin/dbmigrate_107_to_12.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** dbmigrate_107_to_12.php 3 Feb 2003 17:39:29 -0000 1.3 --- dbmigrate_107_to_12.php 13 Feb 2003 12:23:56 -0000 1.4 *************** *** 157,161 **** // This is the first insert into to the new database, because we // use the SchemaVersion table to test if the database is empty. ! $query = "INSERT INTO SchemaVersion VALUES ('1.2.0RC1', '1.2.2', NOW())"; myquery($query, 1); --- 157,161 ---- // This is the first insert into to the new database, because we // use the SchemaVersion table to test if the database is empty. ! $query = "INSERT INTO SchemaVersion VALUES ('1.2.0RC2', '1.2.3', NOW())"; myquery($query, 1); Index: startBase.php =================================================================== RCS file: /cvsroot/basedb/basedb/bin/startBase.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** startBase.php 10 Feb 2003 08:40:40 -0000 1.3 --- startBase.php 13 Feb 2003 12:23:56 -0000 1.4 *************** *** 129,136 **** global $BC; $sv = $BC->schemaVersion(); ! if($sv != "1.2.2") { fwrite(STDERR, "Error: The database schema version is $sv,\n". ! "but this version of BASE requires schema version 1.2.2\n"); return 0; } --- 129,137 ---- global $BC; $sv = $BC->schemaVersion(); ! if($sv != "1.2.3") { fwrite(STDERR, "Error: The database schema version is $sv,\n". ! "but this version of BASE requires schema version 1.2.3\n". ! "Use the migration scripts in bin to correct this.\n"); return 0; } |