fix: in addressing actor/instance are null if pub

This commit is contained in:
əlemi 2024-05-27 19:47:01 +02:00
parent 0afb203b87
commit d830576e66
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -43,7 +43,7 @@ impl MigrationTrait for Migration {
.auto_increment() .auto_increment()
.primary_key() .primary_key()
) )
.col(ColumnDef::new(Addressing::Actor).big_integer().not_null()) .col(ColumnDef::new(Addressing::Actor).big_integer().null())
.foreign_key( .foreign_key(
ForeignKey::create() ForeignKey::create()
.name("fkey-addressing-actor") .name("fkey-addressing-actor")
@ -51,7 +51,7 @@ impl MigrationTrait for Migration {
.to(Actors::Table, Actors::Internal) .to(Actors::Table, Actors::Internal)
.on_update(ForeignKeyAction::Cascade) .on_update(ForeignKeyAction::Cascade)
) )
.col(ColumnDef::new(Addressing::Instance).big_integer().not_null()) .col(ColumnDef::new(Addressing::Instance).big_integer().null())
.foreign_key( .foreign_key(
ForeignKey::create() ForeignKey::create()
.name("fkey-addressing-instance") .name("fkey-addressing-instance")