We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前gorm生成的关联表会自动生成外键约束,如:CONSTRAINT fk_members_role_with_op_ranges FOREIGN KEY (member_uid) REFERENCES members (uid)
fk_members_role_with_op_ranges
member_uid
members
uid
增加配置选项 DisableForeignKeyConstraintWhenMigrating 关闭关联表的外键约束生成,提供脚本删除已存在的外键约束
删除已存在的外键约束
alter table member_group_role_op_ranges drop foreign key fk_member_groups_role_with_op_ranges; alter table member_group_users drop foreign key fk_member_group_users_member_group; alter table member_group_users drop foreign key fk_member_group_users_user; alter table member_role_op_ranges drop foreign key fk_members_role_with_op_ranges; alter table role_op_permissions drop foreign key fk_role_op_permissions_op_permission; alter table role_op_permissions drop foreign key fk_role_op_permissions_role; alter table user_group_users drop foreign key fk_user_group_users_user; alter table user_group_users drop foreign key fk_user_group_users_user_group; alter table user_op_permissions drop foreign key fk_user_op_permissions_op_permission; alter table user_op_permissions drop foreign key fk_user_op_permissions_user;
The text was updated successfully, but these errors were encountered:
UI: main 743412d8 DMS: main-ee 46df963 SQLE: main-ee 342c635080
Sorry, something went wrong.
Merge pull request #141 from actiontech/main
a002b2e
Main
rocky114
No branches or pull requests
目前gorm生成的关联表会自动生成外键约束,如:CONSTRAINT
fk_members_role_with_op_ranges
FOREIGN KEY (member_uid
) REFERENCESmembers
(uid
)增加配置选项 DisableForeignKeyConstraintWhenMigrating 关闭关联表的外键约束生成,提供脚本删除已存在的外键约束
删除已存在的外键约束
The text was updated successfully, but these errors were encountered: