Open raj-s-gouda opened 1 year ago
I'll need a bit more details. What's your starting schema? What are you trying to migrate to? Which migration workflow (commands) are you using?
We do handle case that you describe correctly, so the problem is probably in details.
For example, if I start with:
module default {
type User {
link biography: Post;
};
type Post {
link author: User;
}
};
... and try to migrate to:
module default {
type User;
};
... migration is correctly generated:
CREATE MIGRATION m1uvdp7jybnsblq7idrumiejkllzcxcew2wbbt4v7ko56pdh3ei2nq
ONTO m14nxctq4nhyvbel7klsb3oiwa7c25qxfko7mt6ruxbgtv76n3yhrq
{
ALTER TYPE default::Post {
DROP LINK author;
};
ALTER TYPE default::User {
DROP LINK biography;
};
DROP TYPE default::Post;
};
I had an object type with cyclic link. When I try to apply migration (by removing this object type) I am getting following error
Steps to Reproduce: