From 0cea3652acdfd51568ad05597ca34678638b3fc1 Mon Sep 17 00:00:00 2001 From: stankis <151746694+stankis@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:54:19 +0300 Subject: [PATCH] Update src/db/migrations/20240117092824_add_sort_columns_to_favorites.ts Co-authored-by: Evgenij Shangin --- .../migrations/20240117092824_add_sort_columns_to_favorites.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/migrations/20240117092824_add_sort_columns_to_favorites.ts b/src/db/migrations/20240117092824_add_sort_columns_to_favorites.ts index 12ceb907..59b50f87 100644 --- a/src/db/migrations/20240117092824_add_sort_columns_to_favorites.ts +++ b/src/db/migrations/20240117092824_add_sort_columns_to_favorites.ts @@ -9,7 +9,7 @@ export async function up(knex: Knex): Promise { CREATE INDEX favorites_alias_idx ON favorites(alias); UPDATE favorites SET sort_alias = naturalsort(alias); - CREATE INDEX sort_favorites_alias_idx ON favorites(sort_alias); + CREATE INDEX favorites_sort_alias_idx ON favorites(sort_alias); CREATE FUNCTION update_favorites() RETURNS trigger AS $$ BEGIN