Open msullivan opened 2 years ago
I think I ran into the same issue (using 3.1)
InternalServerError: dependency cycle between
('rebase', 'default::__|root@default|Theme') and ('rebase', 'default::Theme')
I still don't have Data to lose, so I started from scratch and it worked
And again :)
Schema migration error: InternalServerError: dependency cycle between ('dropowned', 'default::__|_revisions@default|Theme')
and ('rebase', 'default::Theme')
In the test
test_edgeql_migration_reject_prop_05
, we try to do the migrationto
The initial migration proposed is the somewhat dubious "drop name, recreate it", which has the virtue of at least successfully applying.
If we reject that, though, and ask to keep the existing name, we generate a migration that tries to rebase User onto Named and then set the type of
name
. This doesn't work, since the rebase fails due to the type conflict.To make this work, we need to generate a SET TYPE that goes before the rebase to make the types match up before the rebase can happen. I think this might require drawing some more distinctions in ordering, since I think normally we try to put changes after a rebase.