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-09 12:13:32 +0100 |
commit | 9c2e9f2625a94934e814fbced18a9e17fce5b588 (patch) | |
tree | b40e432baab79ce90535197ddcd8c548f53d75f2 /core/Migrations/Version13000Date20170718121200.php | |
parent | c8e0f3015f9c9d2f5c0b10ab7c13dd8e89cc87ff (diff) | |
download | nextcloud-server-9c2e9f2625a94934e814fbced18a9e17fce5b588.tar.gz nextcloud-server-9c2e9f2625a94934e814fbced18a9e17fce5b588.zip |
Add missing table columns
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Migrations/Version13000Date20170718121200.php')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 2a47bb52cfc..f830eebbbd2 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -122,6 +122,12 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { $table->addIndex(['root_id'], 'mounts_root_index'); $table->addIndex(['mount_id'], 'mounts_mount_id_index'); $table->addUniqueIndex(['user_id', 'root_id'], 'mounts_user_root_index'); + } else { + $table = $schema->getTable('mounts'); + $table->addColumn('mount_id', Types::BIGINT, [ + 'notnull' => false, + 'length' => 20, + ]); } if (!$schema->hasTable('mimetypes')) { @@ -416,6 +422,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')) { |