From 4290011ce381a66862d9b7f39c05d38173d3861b Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 20 May 2024 09:18:27 +0200 Subject: [PATCH] fix: oops name clash --- ...0520_000001_add_published_to_addressing_actor_index.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/migrations/m20240520_000001_add_published_to_addressing_actor_index.rs b/src/migrations/m20240520_000001_add_published_to_addressing_actor_index.rs index 55975c43..477dbe77 100644 --- a/src/migrations/m20240520_000001_add_published_to_addressing_actor_index.rs +++ b/src/migrations/m20240520_000001_add_published_to_addressing_actor_index.rs @@ -14,7 +14,7 @@ impl MigrationTrait for Migration { manager .create_index( Index::create() - .name("addressing-actor-index") + .name("addressing-actor-published-index") .table(Addressing::Table) .col(Addressing::Actor) .col(Addressing::Published) @@ -29,7 +29,7 @@ impl MigrationTrait for Migration { manager .create_index( Index::create() - .name("addressing-server-index") + .name("addressing-server-published-index") .table(Addressing::Table) .col(Addressing::Server) .col(Addressing::Published) @@ -42,7 +42,7 @@ impl MigrationTrait for Migration { async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { manager - .drop_index(Index::drop().name("addressing-actor-index").to_owned()) + .drop_index(Index::drop().name("addressing-actor-published-index").to_owned()) .await?; manager @@ -56,7 +56,7 @@ impl MigrationTrait for Migration { .await?; manager - .drop_index(Index::drop().name("addressing-server-index").to_owned()) + .drop_index(Index::drop().name("addressing-server-published-index").to_owned()) .await?; manager