From 852b4275f0d6ca7e34bc75c0a5244206a3569a2c Mon Sep 17 00:00:00 2001 From: August Date: Fri, 20 Oct 2023 19:03:14 +0800 Subject: [PATCH] fix: fix table object foreign key in init migration (#12978) --- src/meta/src/model_v2/migration/src/m20230908_072257_init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/src/model_v2/migration/src/m20230908_072257_init.rs b/src/meta/src/model_v2/migration/src/m20230908_072257_init.rs index 35d1ab29020e6..a50e3bcba6e69 100644 --- a/src/meta/src/model_v2/migration/src/m20230908_072257_init.rs +++ b/src/meta/src/model_v2/migration/src/m20230908_072257_init.rs @@ -472,7 +472,7 @@ impl MigrationTrait for Migration { .col(ColumnDef::new(Table::Version).json().not_null()) .foreign_key( &mut ForeignKey::create() - .name("FK_view_object_id") + .name("FK_table_object_id") .from(Table::Table, Table::TableId) .to(Object::Table, Object::Oid) .on_delete(ForeignKeyAction::Cascade)