Module: nagvis Branch: master Commit: 85f9d426983417c32bf1e4ebb10683949a68237b URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=85f9d426983417c32bf1e4ebb10683949a68237b
Author: Lars Michelsen <[email protected]> Date: Thu Sep 30 19:31:03 2010 +0200 Only updating the version in DB when the version has been released --- share/server/core/classes/CoreSQLiteHandler.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/share/server/core/classes/CoreSQLiteHandler.php b/share/server/core/classes/CoreSQLiteHandler.php index c5c6f01..9a7a4d0 100644 --- a/share/server/core/classes/CoreSQLiteHandler.php +++ b/share/server/core/classes/CoreSQLiteHandler.php @@ -227,7 +227,11 @@ class CoreSQLiteHandler { $this->addRolePerm($data['roleId'], 'ManageShapes', 'doUpload', '*'); $this->addRolePerm($data['roleId'], 'ManageShapes', 'doDelete', '*'); } - $this->updateDbVersion(); + + // Only apply the new version when this is the real release or newer + // (While development the version string remains on the old value) + if($this->versionToTag(CONST_VERSION) >= 1050300) + $this->updateDbVersion(); } private function updateDb1050024() { ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
