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

Documentation doesn't match behavior for multiple migrations #12

Open
chingologram opened this issue Jan 2, 2023 · 0 comments
Open

Comments

@chingologram
Copy link

chingologram commented Jan 2, 2023

As per README.md, wp dbi migrate --rollback without the migration argument, should rollback all migrations.

To rollback all migrations you can run wp dbi migrate --rollback, or just a specific migration wp dbi migrate AddCustomTable --rollback.

However, on

if ( $migration && isset( $assoc_args['rollback'] ) ) {

a specific migration is needed for rollback to work, otherwise the command behaves just as without the flag.

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

No branches or pull requests

1 participant