diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-25 09:03:22 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-14 11:12:52 +0100 |
commit | 5dbc94bfad40a9789deb29e61f4c8ca1211d5aed (patch) | |
tree | ca0493569beb4e835ba14fe820d04ebf3c277790 /core | |
parent | b84bdb1080beb8ece3badb97af2f2ed9e50956d7 (diff) | |
download | nextcloud-server-5dbc94bfad40a9789deb29e61f4c8ca1211d5aed.tar.gz nextcloud-server-5dbc94bfad40a9789deb29e61f4c8ca1211d5aed.zip |
Add missing table columns
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 253c6654dd6..a2616c95752 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -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')) { |