Revision: 1406
http://mrbs.svn.sourceforge.net/mrbs/?rev=1406&view=rev
Author: cimorrison
Date: 2010-08-06 15:04:28 +0000 (Fri, 06 Aug 2010)
Log Message:
-----------
Added a check that the entry table exists before commencing an upgrade, just in
case this is a new installation and the database tables haven't even been
created. (See SF Support Requests item #3039589).
Modified Paths:
--------------
mrbs/trunk/web/dbsys.inc
Modified: mrbs/trunk/web/dbsys.inc
===================================================================
--- mrbs/trunk/web/dbsys.inc 2010-08-06 11:11:38 UTC (rev 1405)
+++ mrbs/trunk/web/dbsys.inc 2010-08-06 15:04:28 UTC (rev 1406)
@@ -681,8 +681,13 @@
}
}
-if (($current_db_schema_version < $db_schema_version) ||
- ($current_local_db_schema_version < $local_db_schema_version))
+// If either of the database schema version numbers are out of date, then
+// upgrade the database - provided of course that the entry table exists.
+// (We check that the entry table exists just in case this is a new
installation
+// and they've forgotten to create the database tables)
+if ((($current_db_schema_version < $db_schema_version) ||
+ ($current_local_db_schema_version < $local_db_schema_version)) &&
+ sql_table_exists($tbl_entry))
{
// Upgrade needed
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits