diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-09-27 07:29:21 +0200 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-09-27 07:29:21 +0200 |
commit | 9d5343f0eae74ab6fbe280d4f353933efa9b2e73 (patch) | |
tree | c22ba9b9d8c24672c50c4f8158fae9e102236abb /lib | |
parent | d9700dc2dacf3c68ba47a05e5197fad3ddcc8de3 (diff) |
switch to unique_index
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Migration/Version0002Date20190916000002.php | 2 |
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; |