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

Execute migrations in Postgres for greater context into rules #18

Open
froque opened this issue Feb 23, 2023 · 0 comments
Open

Execute migrations in Postgres for greater context into rules #18

froque opened this issue Feb 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@froque
Copy link
Member

froque commented Feb 23, 2023

  • Execute migration files in a Testcontainers or io.zonky.test:embedded-postgres to get greater insights into if a SQL migration is safe or not.
  • drop table rule #17 is an example of a migration that could benefit from context of the table to be dropped
  • adding-field-with-default is another example that could benefit from further context

Maybe add an option to disable for situations that the existing migration files don't represent 100% of the state of the database.

Open questions:

  • What is the order to run the migrations ?
@froque froque added the enhancement New feature or request label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant