You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnerrors.New("sql/schema: WithForeignKeys(false) does not work in Atlas migration")
)
Motivation 馃敠
Atlas integration is useful for many things like validating migration diffs, #1688 and more
Disabling foreign keys is good for improving performance and also for more distributed setup where each microservice controls its own schema/database
It would be great if both could work together
The text was updated successfully, but these errors were encountered:
Summary 馃挕
You currently cannot use Atlas integration (https://entgo.io/docs/migrate/#atlas-integration) while disabling foreign key (https://entgo.io/docs/migrate#foreign-keys)
You currently get back an error
errors.New("sql/schema: WithForeignKeys(false) does not work in Atlas migration")
(ent/dialect/sql/schema/atlas.go
Line 255 in 60e0328
Motivation 馃敠
Atlas integration is useful for many things like validating migration diffs, #1688 and more
Disabling foreign keys is good for improving performance and also for more distributed setup where each microservice controls its own schema/database
It would be great if both could work together
The text was updated successfully, but these errors were encountered: