Skip to content

List(and apply) pending DB migrations / apply migrations from tests #6139

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

Merged
merged 5 commits into from
Jun 24, 2021

Conversation

smotornyuk
Copy link
Member

@smotornyuk smotornyuk commented Jun 7, 2021

  • Test fixture migrate_db_for, which applies DB migrations defined in plugins ( ckan generate migration -p PLUGIN_NAME)
  • Registers ckan db pending-migrations [--apply], which shows all the enabled plugins that have unapplied migrations and, when --apply flag is provided, runs those migrations

@smotornyuk smotornyuk changed the title Fixture for plugin DB migrations List(and apply) pending DB migrations / apply migrations from tests Jun 7, 2021
@amercader amercader self-assigned this Jun 8, 2021
@amercader amercader merged commit e2d9d16 into master Jun 24, 2021
@amercader amercader deleted the migrate_db_for-fixture branch June 24, 2021 16:33
@amercader
Copy link
Member

Looks good @smotornyuk, I think it's worth adding this new command and fixture to 2.9, what do you think?

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

Successfully merging this pull request may close these issues.

2 participants