2017 © Pedro Peláez
 

wp-cli-package wp-cli-migrate

Simple data migration for WordPress

image

isotopsweden/wp-cli-migrate

Simple data migration for WordPress

  • Tuesday, March 27, 2018
  • by fredrikforsmo
  • Repository
  • 2 Watchers
  • 1 Stars
  • 372 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 158 % Grown

The README.md

wp-cli-migrate

Simple data migration for WordPress., (*1)

Using

Create a migration file migrations/example.php or the directory of your choice defined in MIGRATION_DIR, (*2)

use Isotop\Migration\Migration;

class MyClassName extends Migration {
    public function up() {
        update_option( 'key', 'value' );
    }

    public function down() {
        delete_option( 'key' );
    }
}

Run the migration up:, (*3)

wp migrate up

Run the migration down:, (*4)

wp migrate down

Installing

Installing this package requires WP-CLI v1.1.0 or greater. Update to the latest stable release with wp cli update., (*5)

Once you've done so, you can install this package with:, (*6)

wp package install git@github.com:isotopsweden/wp-cli-migrate.git

License

MIT © Isotop, (*7)

The Versions

27/03 2018

dev-master

9999999-dev https://github.com/isotopsweden/wp-cli-migrate

Simple data migration for WordPress

  Sources   Download

MIT

The Development Requires