From 2a719f14fb30750198e4363e1417b70bad88538e Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 26 Jun 2024 05:29:42 +0200 Subject: [PATCH] fix!: oops add index on notifications activity --- .../src/m20240626_000001_add_notifications_table.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upub/migrations/src/m20240626_000001_add_notifications_table.rs b/upub/migrations/src/m20240626_000001_add_notifications_table.rs index 30e2d18..5a1f21f 100644 --- a/upub/migrations/src/m20240626_000001_add_notifications_table.rs +++ b/upub/migrations/src/m20240626_000001_add_notifications_table.rs @@ -55,6 +55,10 @@ impl MigrationTrait for Migration { ) .await?; + manager + .create_index(Index::create().name("index-notifications-activity").table(Notifications::Table).col(Notifications::Activity).to_owned()) + .await?; + manager .create_index( Index::create()