Skip to content

Commit

Permalink
fix: fix table object foreign key in init migration (#12978)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 authored Oct 20, 2023
1 parent 38a066c commit 852b427
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 852b427

Please sign in to comment.