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
Hello, seeing that a diff is generating this (using postgres)
ALTER TABLE "public"."order_items" ADD
CONSTRAINT "fk_order_items_order_id" FOREIGN KEY ("order_id") REFERENCES "public"."orders" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION;
This commit adds the inspect/diff pieces you may need. I'm not familiar with the tooling functionality that atlas does since I use this package like Ent does. If support in the tooling is needed to merge this, someone else will have to take over.
C-Deck
pushed a commit
to C-Deck/atlas
that referenced
this issue
Jun 21, 2024
The issue was resolved with latest Atlas build, and it will be officially released in next version. You can define the deferrable attribute on the following blocks: foreign_key, primary_key, unique, and exclude. For example:
Hello, seeing that a diff is generating this (using postgres)
While I have set this in the schema .sql :
I would like to contribute opening a PR :
Seems like this codes need to be impacted :
atlas/sql/postgres/diff.go
Line 232 in 856a70c
atlas/sql/schema/schema.go
Line 328 in 856a70c
atlas/sql/internal/sqlx/diff.go
Line 502 in 856a70c
Could you give me some hint so that I can open a pull request ?
Thanks you :)
The text was updated successfully, but these errors were encountered: