diff options
author | Joas Schilling <coding@schilljs.com> | 2019-03-27 11:42:33 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-27 13:32:59 +0100 |
commit | 274658629d2f7e72de123a8763f2578f79cb3376 (patch) | |
tree | 4af81fdbc7c3440f9657b24fe46037a23f741a46 /core/Migrations | |
parent | 86594e8c18123db6696f4cedfc0578d036ad5dd6 (diff) | |
download | nextcloud-server-274658629d2f7e72de123a8763f2578f79cb3376.tar.gz nextcloud-server-274658629d2f7e72de123a8763f2578f79cb3376.zip |
Make sure all tables have named indexes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Migrations')
-rw-r--r-- | core/Migrations/Version14000Date20180626223656.php | 2 | ||||
-rw-r--r-- | core/Migrations/Version16000Date20190212081545.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/Migrations/Version14000Date20180626223656.php b/core/Migrations/Version14000Date20180626223656.php index fb7a6c647bc..17b3674d272 100644 --- a/core/Migrations/Version14000Date20180626223656.php +++ b/core/Migrations/Version14000Date20180626223656.php @@ -60,7 +60,7 @@ class Version14000Date20180626223656 extends SimpleMigrationStep { 'default' => '', ]); $table->setPrimaryKey(['id']); - $table->addUniqueIndex(['version']); + $table->addUniqueIndex(['version'], 'version'); $table->addIndex(['version', 'etag'], 'version_etag_idx'); } diff --git a/core/Migrations/Version16000Date20190212081545.php b/core/Migrations/Version16000Date20190212081545.php index 6f6902bf177..dcb2722222a 100644 --- a/core/Migrations/Version16000Date20190212081545.php +++ b/core/Migrations/Version16000Date20190212081545.php @@ -92,9 +92,9 @@ class Version16000Date20190212081545 extends SimpleMigrationStep { 'length' => 1024, ]); $table->setPrimaryKey(['id']); - $table->addUniqueIndex(['poll_token']); - $table->addUniqueIndex(['login_token']); - $table->addIndex(['timestamp']); + $table->addUniqueIndex(['poll_token'], 'poll_token'); + $table->addUniqueIndex(['login_token'], 'login_token'); + $table->addIndex(['timestamp'], 'timestamp'); return $schema; } |