Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

isotopsweden/wp-cli-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-cli-migrate

Simple data migration for WordPress.

Using

Create a migration file migrations/example.php or the directory of your choice defined in MIGRATION_DIR

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:

wp migrate up

Run the migration down:

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.

Once you've done so, you can install this package with:

wp package install [email protected]:isotopsweden/wp-cli-migrate.git

License

MIT © Isotop

About

Simple data migration for WordPress

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages