Skip to content
New issue

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

Repeatable or Automatic Dependent Child Migrations #10129

Open
cpursley opened this issue Feb 13, 2024 · 0 comments
Open

Repeatable or Automatic Dependent Child Migrations #10129

cpursley opened this issue Feb 13, 2024 · 0 comments
Labels
k/enhancement New feature or improve an existing feature

Comments

@cpursley
Copy link

cpursley commented Feb 13, 2024

Problem

Often times there are database objects (views, functions, etc) that are dependent on others. Migrating a parent means having to manually drop and update all children. This is a very tedious process fraught with potential to make major mistakes.

Solution

Something like Red Gate's Repeatable Migrations would get us half way there. But what would be really cool is a system that automatically checks for dependent objects (by querying the object's metadata), copies them into subsequent migrations and then adds the drops in front of the parent migrations. If not automated, at least some kind of walk-through in the Hasura UI that copies the dependent objects into new migration files (in the correct order) which can then be manually edited as needed.

Describe alternatives you've considered

Right now, it's all manual...

@cpursley cpursley added the k/enhancement New feature or improve an existing feature label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant