@@ -36,12 +36,12 @@ public function isUpgradable()
36
36
$ dbv = $ sysparameter ->get ('database.version ' );
37
37
$ sysv = $ sysparameter ->get ('system.version ' );
38
38
39
- // If system.version doesn't exist, but we get a database version of 4,
40
- // then that means we're upgrading from a prior iPeer v3 installation
39
+ // If system.version doesn't exist, but we get a database version of 4,
40
+ // then that means we're upgrading from a prior iPeer v3 installation
41
41
// and don't need to run this upgrader.
42
- if (empty ($ sysv ) && $ dbv == 4 ) {
43
- return false ;
44
- }
42
+ # if (empty($sysv) && $dbv == 4) {
43
+ # return false;
44
+ # }
45
45
46
46
return parent ::isUpgradable ();
47
47
}
@@ -69,7 +69,7 @@ public function up()
69
69
// when upgrading from v2, will run through all the delta_*.sql files
70
70
// up to $this->dbVersion because the database version wasn't stored in
71
71
// the database, so PHP get a null value back, which is then treated
72
- // as if we're starting from version 0
72
+ // as if we're starting from version 0
73
73
$ sysparameter = ClassRegistry::init ('SysParameter ' );
74
74
$ dbv = $ sysparameter ->getDatabaseVersion ();
75
75
$ ret = $ this ->patchDb ($ dbv , $ this ->dbVersion );
0 commit comments