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
When I added to a foreign key to an existing table, psqldef generated migration error.
CREATE TABLE a.b ( "id" serial PRIMARY KEY ); CREATE TABLE c.d ( "id" serial PRIMARY KEY );
schema.sql
CREATE TABLE c.d ( "id" serial PRIMARY KEY, CONSTRAINT d_id_fkey FOREIGN KEY (id) REFERENCES "a"."b" (id) );
-- dry run -- ALTER TABLE "c"."d" ADD CONSTRAINT "d_id_fkey" FOREIGN KEY ("id") REFERENCES "b" ("id");
ALTER TABLE "c"."d" ADD CONSTRAINT "d_id_fkey" FOREIGN KEY ("id") REFERENCES "a"."b" ("id");
The text was updated successfully, but these errors were encountered:
73b39fb
Fixed in v0.11.31.
Sorry, something went wrong.
No branches or pull requests
Problem
When I added to a foreign key to an existing table, psqldef generated migration error.
Input SQL
schema.sql
and add a foreign key to an existing table.Current output
Expected output
The text was updated successfully, but these errors were encountered: