Updated upgrade script; Bumped version number from 0.2.4 to 0.2.5
This commit is contained in:
parent
002cb09f1c
commit
b03182e39c
2 changed files with 7 additions and 3 deletions
|
@ -24,6 +24,6 @@
|
|||
# This copyright notice MUST APPEAR in all copies of the script!
|
||||
#################################################################
|
||||
|
||||
define("BAIKAL_VERSION", "0.2.4");
|
||||
define("BAIKAL_VERSION", "0.2.5");
|
||||
define("BAIKAL_HOMEPAGE", "http://baikal-server.com");
|
||||
define("PROJECT_PACKAGE", "regular");
|
||||
|
|
|
@ -101,7 +101,7 @@ HTML;
|
|||
}
|
||||
}
|
||||
|
||||
if(version_compare($sVersionFrom, '2.3.0', '<=')) {
|
||||
if(version_compare($sVersionFrom, '0.2.3', '<=')) {
|
||||
# Upgrading DB
|
||||
|
||||
# etag VARCHAR(32),
|
||||
|
@ -129,7 +129,7 @@ HTML;
|
|||
"ALTER TABLE calendarobjects ADD COLUMN firstoccurence integer",
|
||||
"ALTER TABLE calendarobjects ADD COLUMN lastoccurence integer",
|
||||
"ALTER TABLE calendars ADD COLUMN transparent bool",
|
||||
"ALTER TABLE principals ADD COLUMN vcardurl VARCHAR(80)", # This one is added in SQLite but not MySQL, because it is already there since the beginning in MySQL
|
||||
"ALTER TABLE principals ADD COLUMN vcardurl text", # This one is added in SQLite but not MySQL, because it is already there since the beginning in MySQL
|
||||
);
|
||||
|
||||
$this->aSuccess[] = "SQLite database has been successfuly upgraded.'";
|
||||
|
@ -145,6 +145,10 @@ HTML;
|
|||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if(version_compare($sVersionFrom, '0.2.4', '<=')) {
|
||||
# Nothing to do :)
|
||||
}
|
||||
|
||||
$this->updateConfiguredVersion($sVersionTo);
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Reference in a new issue