i do experience an issue on updating a constraint on a foreign table.
to circumvent circular dependencies on migration i create the table without the foreign key and add it in
on a later moment.
the fk in question is the one from contract.schema to account.schema, where in contract.schema the field "author_id"
references to the "id" field on account.schema.
ALTER TABLE "contract" ADD CONSTRAINT "fk:contract.author_id+contract.id" FOREIGN KEY ("author_id") REFERENCES "account" ("id") ON DELETE CASCADE ON UPDATE NO ACTION
i do experience an issue on updating a constraint on a foreign table.
to circumvent circular dependencies on migration i create the table without the foreign key and add it in on a later moment.
the fk in question is the one from contract.schema to account.schema, where in contract.schema the field "author_id" references to the "id" field on account.schema.
i update the field as follows:
the sql command is correct aswell:
the foreign key does exist: (see pic one) https://dataedo.com/kb/query/postgresql/list-foreign-keys
the table aswell has an entry, (i do create the table entry not attach it)
in lldb i get mixed messages
vs
the table definition
the function in question