Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zeevmoney
Copy link
Contributor

This adds the support for disabling FK when running with Atlas migrations
As I see I will need to add mocks for Atlas SQL calls if I want to add tests. I can do it if needed, or maybe there is another way to add the tests?

@zeevmoney zeevmoney changed the title dialect/sql: without foreign key option for atlas dialect/sql: without foreign keys option for atlas Mar 15, 2022
Copy link
Member

@a8m a8m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @zeevmoney for the contribution!

@a8m a8m merged commit b1abbd3 into ent:master Mar 16, 2022
gitlawr pushed a commit to gitlawr/ent that referenced this pull request Apr 13, 2022
* dialect/sql: without foreign key option for atlas

* handle fks in modifytables

* add tests

* tests

* Update dialect/sql/schema/atlas.go

Co-authored-by: Ariel Mashraki <[email protected]>

* ct and tests

Co-authored-by: Ariel Mashraki <[email protected]>
gitlawr pushed a commit to seal-io/ent that referenced this pull request Apr 13, 2022
* dialect/sql: without foreign key option for atlas

* handle fks in modifytables

* add tests

* tests

* Update dialect/sql/schema/atlas.go

Co-authored-by: Ariel Mashraki <[email protected]>

* ct and tests

Co-authored-by: Ariel Mashraki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants