Add missing table columns

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-09-25 09:03:22 +02:00
parent b84bdb1080
commit 5dbc94bfad
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 8 additions and 0 deletions

View File

@ -471,6 +471,14 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
$table->addIndex(['parent'], 'parent_index');
$table->addIndex(['uid_owner'], 'owner_index');
$table->addIndex(['uid_initiator'], 'initiator_index');
} else {
$table = $schema->getTable('share');
if (!$table->hasColumn('password')) {
$table->addColumn('password', 'string', [
'notnull' => false,
'length' => 255,
]);
}
}
if (!$schema->hasTable('jobs')) {