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

Profile-less migrations #13

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

josephdsouza86
Copy link

The intention of my pull request is to allow a database to be migrated over without a profile having to already exist on the system. For example, it will be possible to create an empty WordPress installation and initiate a DB pull using a connection string only. Particularly, this is useful to more easily provision new environments (stage, UAT, etc) through WP CLI.

I've made the existing profile argument optional and added new arguments for connection-string, action and create-backup. The 3 new arguments can be provided to create a type of "manual profile" with mostly default settings. It's possible to also include the profile id, which will take precedence over the manual profile.

The most significant changes are to the command.php file, which means the main part of the functionality as originally found in wpsdb-cli.php pretty much works as it did before.

I've been using these changes on my systems to more quickly setup new websites where profiles don't exist yet and I think it will be a useful addition that others may benefit from too. So, I hope you like it.

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

Successfully merging this pull request may close these issues.

1 participant