fix: oops name clash

This commit is contained in:
əlemi 2024-05-20 09:18:27 +02:00
parent c68adc7030
commit 4290011ce3
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -14,7 +14,7 @@ impl MigrationTrait for Migration {
manager manager
.create_index( .create_index(
Index::create() Index::create()
.name("addressing-actor-index") .name("addressing-actor-published-index")
.table(Addressing::Table) .table(Addressing::Table)
.col(Addressing::Actor) .col(Addressing::Actor)
.col(Addressing::Published) .col(Addressing::Published)
@ -29,7 +29,7 @@ impl MigrationTrait for Migration {
manager manager
.create_index( .create_index(
Index::create() Index::create()
.name("addressing-server-index") .name("addressing-server-published-index")
.table(Addressing::Table) .table(Addressing::Table)
.col(Addressing::Server) .col(Addressing::Server)
.col(Addressing::Published) .col(Addressing::Published)
@ -42,7 +42,7 @@ impl MigrationTrait for Migration {
async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> {
manager manager
.drop_index(Index::drop().name("addressing-actor-index").to_owned()) .drop_index(Index::drop().name("addressing-actor-published-index").to_owned())
.await?; .await?;
manager manager
@ -56,7 +56,7 @@ impl MigrationTrait for Migration {
.await?; .await?;
manager manager
.drop_index(Index::drop().name("addressing-server-index").to_owned()) .drop_index(Index::drop().name("addressing-server-published-index").to_owned())
.await?; .await?;
manager manager