mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Add unique index in short_url_visits_counts
This commit is contained in:
parent
3c89d252d2
commit
7d415e40b2
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ final class Version20240306132518 extends AbstractMigration
|
|||
'notnull' => true,
|
||||
'default' => 1,
|
||||
]);
|
||||
|
||||
$table->addUniqueIndex(['short_url_id', 'potential_bot', 'slot_id'], 'UQ_slot_per_short_url');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
|
|
Loading…
Add table
Reference in a new issue