From 1e8afa52893bdecf2e9cef9e8e7338cbd44f602a Mon Sep 17 00:00:00 2001 From: Jurgis Sakalauskas Date: Fri, 3 Nov 2023 13:56:50 +0200 Subject: [PATCH] fix unique index not needed --- migrations/1673603746273-CreateTorrentsTableAndRelateToFiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/1673603746273-CreateTorrentsTableAndRelateToFiles.ts b/migrations/1673603746273-CreateTorrentsTableAndRelateToFiles.ts index d36ce27..c59f344 100644 --- a/migrations/1673603746273-CreateTorrentsTableAndRelateToFiles.ts +++ b/migrations/1673603746273-CreateTorrentsTableAndRelateToFiles.ts @@ -9,7 +9,7 @@ export class CreateTorrentsTableAndRelateToFiles1673603746273 ); await queryRunner.query( - `create unique index file_torrent_id + `create index file_torrent_id on files (torrent_id);`, );