Fix difference in database scheme between MySQL and SQLite (#1190)
This commit is contained in:
parent
ff7c0b6db3
commit
1175af3752
2 changed files with 15 additions and 8 deletions
|
@ -35,14 +35,16 @@ class Calendar extends \Flake\Core\Model\Db {
|
|||
const LABELFIELD = "displayname";
|
||||
|
||||
protected $aData = [
|
||||
"principaluri" => "",
|
||||
"displayname" => "",
|
||||
"uri" => "",
|
||||
"description" => "",
|
||||
"calendarorder" => 0,
|
||||
"calendarcolor" => "",
|
||||
"timezone" => null,
|
||||
"calendarid" => 0,
|
||||
"principaluri" => "",
|
||||
"displayname" => "",
|
||||
"uri" => "",
|
||||
"description" => "",
|
||||
"calendarorder" => 0,
|
||||
"calendarcolor" => "",
|
||||
"timezone" => null,
|
||||
"calendarid" => 0,
|
||||
"access" => 1,
|
||||
"share_invitestatus" => 2,
|
||||
];
|
||||
protected $oCalendar; # Baikal\Model\Calendar\Calendar
|
||||
|
||||
|
|
|
@ -499,6 +499,11 @@ SQL
|
|||
);
|
||||
$this->aSuccess[] = 'Migrated calendars table';
|
||||
}
|
||||
if (version_compare($sVersionFrom, '0.9.4', '<')) {
|
||||
$pdo->exec("UPDATE calendarinstances SET access = 1 WHERE access IS NULL");
|
||||
$pdo->exec("UPDATE calendarinstances SET share_invitestatus = 2 WHERE share_invitestatus IS NULL");
|
||||
$this->aSuccess[] = 'Updated default values in calendarinstances table';
|
||||
}
|
||||
|
||||
$this->updateConfiguredVersion($sVersionTo);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue