Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-27 13:42:33 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-03-27 15:32:59 +0300
commit274658629d2f7e72de123a8763f2578f79cb3376 (patch)
tree4af81fdbc7c3440f9657b24fe46037a23f741a46 /core/Migrations
parent86594e8c18123db6696f4cedfc0578d036ad5dd6 (diff)
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.php2
-rw-r--r--core/Migrations/Version16000Date20190212081545.php6
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;
}