|
|
@@ -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')) { |