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

Make it easier to run migrations as repeatable commands #178

Open
gggeek opened this issue Dec 2, 2018 · 3 comments
Open

Make it easier to run migrations as repeatable commands #178

gggeek opened this issue Dec 2, 2018 · 3 comments
Milestone

Comments

@gggeek
Copy link
Member

gggeek commented Dec 2, 2018

Since the migration definition language has acquired a lot of the bells and whistles of a full content manipulation language, it would be nice to be able to run specific migrations as standalone cli commands.

As such, those commands should:

  • not be tracked in the db
  • allow concurrent execution
  • be easy to discover from the cli

Note: this might be implemented as a separate bundle

@gggeek gggeek added this to the 6.0 milestone Dec 15, 2018
@gggeek
Copy link
Member Author

gggeek commented Jan 18, 2019

As part of 5.8, there will be a --force flag available for the migrate commands. Not 100% there, but I would say 80%...

@gggeek
Copy link
Member Author

gggeek commented Nov 16, 2022

Other improvements related to the topic:

  • when executing migrations passing references values on the cli, save those in the mig. execution status line
  • allow yaml migrations to include other yaml migrations. This way one could build a "library" of migration building blocks to be reused in different specific migrations (note that this defeats in large part the purpose of having a repeatable way of creating a known db state, in the case the 'lib' migrations do get altered after being executed once...)

@gggeek
Copy link
Member Author

gggeek commented Nov 22, 2022

The two improvements listed above have been implemented in rel. 6.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant