mirror of https://github.com/sualko/cloud_bbb
fix: change boolean columns to nullable (#166)
see https://docs.nextcloud.com/server/latest/developer_manual/app_publishing_maintenance/upgrade-guide.html#boolean-database-columnspull/173/head
parent
94142b754e
commit
3a65cc4f99
|
@ -54,7 +54,7 @@ class Version000000Date20200416124731 extends SimpleMigrationStep {
|
|||
'notnull' => false,
|
||||
]);
|
||||
$table->addColumn('record', 'boolean', [
|
||||
'notnull' => true,
|
||||
'notnull' => false,
|
||||
]);
|
||||
|
||||
$table->setPrimaryKey(['id']);
|
||||
|
|
|
@ -26,7 +26,7 @@ class Version000000Date20200617055735 extends SimpleMigrationStep {
|
|||
|
||||
if (!$table->hasColumn('everyone_is_moderator')) {
|
||||
$table->addColumn('everyone_is_moderator', 'boolean', [
|
||||
'notnull' => true,
|
||||
'notnull' => false,
|
||||
'default' => false,
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ class Version000000Date20200826100844 extends SimpleMigrationStep {
|
|||
'default' => -1,
|
||||
]);
|
||||
$table->addColumn('allow_recording', 'boolean', [
|
||||
'notnull' => true,
|
||||
'notnull' => false,
|
||||
'default' => true,
|
||||
]);
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ class Version000000Date20200829112301 extends SimpleMigrationStep {
|
|||
|
||||
if (!$table->hasColumn('require_moderator')) {
|
||||
$table->addColumn('require_moderator', 'boolean', [
|
||||
'notnull' => true,
|
||||
'notnull' => false,
|
||||
'default' => false,
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -28,21 +28,21 @@ class Version000000Date20210419132000 extends SimpleMigrationStep {
|
|||
|
||||
if (!$table->hasColumn('listen_only')) {
|
||||
$table->addColumn('listen_only', 'boolean', [
|
||||
'notnull' => true,
|
||||
'notnull' => false,
|
||||
'default' => true
|
||||
]);
|
||||
}
|
||||
|
||||
if (!$table->hasColumn('media_check')) {
|
||||
$table->addColumn('media_check', 'boolean', [
|
||||
'notnull' => true,
|
||||
'notnull' => false,
|
||||
'default' => true
|
||||
]);
|
||||
}
|
||||
|
||||
if (!$table->hasColumn('clean_layout')) {
|
||||
$table->addColumn('clean_layout', 'boolean', [
|
||||
'notnull' => true,
|
||||
'notnull' => false,
|
||||
'default' => false
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue