зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #6183 from nextcloud/bugfix/6165/make-migration-repeatable
Make migration repeatable
This commit is contained in:
Коммит
f7aa9f90aa
|
@ -43,11 +43,13 @@ class Version10000Date20201012144235 extends SimpleMigrationStep {
|
|||
$schema = $schemaClosure();
|
||||
|
||||
$table = $schema->getTable('talk_rooms');
|
||||
$table->addColumn('sip_enabled', Types::SMALLINT, [
|
||||
'notnull' => true,
|
||||
'default' => 0,
|
||||
'unsigned' => true,
|
||||
]);
|
||||
if (!$table->hasColumn('sip_enabled')) {
|
||||
$table->addColumn('sip_enabled', Types::SMALLINT, [
|
||||
'notnull' => true,
|
||||
'default' => 0,
|
||||
'unsigned' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
return $schema;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче