From d830576e66a978abe2e987ef999818fe21464242 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 27 May 2024 19:47:01 +0200 Subject: [PATCH] fix: in addressing actor/instance are null if pub --- .../m20240524_000004_create_addressing_deliveries.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/migrations/m20240524_000004_create_addressing_deliveries.rs b/src/migrations/m20240524_000004_create_addressing_deliveries.rs index 0e1ecb21..50bfc0d6 100644 --- a/src/migrations/m20240524_000004_create_addressing_deliveries.rs +++ b/src/migrations/m20240524_000004_create_addressing_deliveries.rs @@ -43,7 +43,7 @@ impl MigrationTrait for Migration { .auto_increment() .primary_key() ) - .col(ColumnDef::new(Addressing::Actor).big_integer().not_null()) + .col(ColumnDef::new(Addressing::Actor).big_integer().null()) .foreign_key( ForeignKey::create() .name("fkey-addressing-actor") @@ -51,7 +51,7 @@ impl MigrationTrait for Migration { .to(Actors::Table, Actors::Internal) .on_update(ForeignKeyAction::Cascade) ) - .col(ColumnDef::new(Addressing::Instance).big_integer().not_null()) + .col(ColumnDef::new(Addressing::Instance).big_integer().null()) .foreign_key( ForeignKey::create() .name("fkey-addressing-instance")