summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-09-27 07:29:21 +0200
committerMaxence Lange <maxence@artificial-owl.com>2019-09-27 07:29:21 +0200
commit9d5343f0eae74ab6fbe280d4f353933efa9b2e73 (patch)
treec22ba9b9d8c24672c50c4f8158fae9e102236abb /lib
parentd9700dc2dacf3c68ba47a05e5197fad3ddcc8de3 (diff)
switch to unique_index
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Migration/Version0002Date20190916000002.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Migration/Version0002Date20190916000002.php b/lib/Migration/Version0002Date20190916000002.php
index 8a5fb22a..bd18c1fa 100644
--- a/lib/Migration/Version0002Date20190916000002.php
+++ b/lib/Migration/Version0002Date20190916000002.php
@@ -114,7 +114,7 @@ class Version0002Date20190916000002 extends SimpleMigrationStep {
$table = $schema->getTable('social_a2_stream_action');
if (!$table->hasIndex('sa')) {
- $table->addIndex(['stream_id_prim', 'actor_id_prim'], 'sa');
+ $table->addUniqueIndex(['stream_id_prim', 'actor_id_prim'], 'sa');
}
return $schema;