PHPackages                             enshtein/wp-migrations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. enshtein/wp-migrations

ActiveProject[Database &amp; ORM](/categories/database)

enshtein/wp-migrations
======================

A WordPress library for managing database table schema upgrades and data seeding.

1.0.3(3y ago)16MITPHP

Since Oct 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/enshtein/wp-migrations)[ Packagist](https://packagist.org/packages/enshtein/wp-migrations)[ RSS](/packages/enshtein-wp-migrations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

wp-migrations
=============

[](#wp-migrations)

A WordPress library for managing database table schema upgrades and data seeding.

Installation
------------

[](#installation)

- `composer require enshtein/wp-migrations`
- bootstrap the package by adding `\Enshtein\WpMigrations\Migrate::instance();` to an mu-plugin.

Migrations
----------

[](#migrations)

By default, the command will look for migration files in **migrations** directory alongside the **vendor** folder.

Use
---

[](#use)

Simply run `wp migrate` on the command line using **WP CLI** and any migrations not already run will be executed.

Create a migration file
-----------------------

[](#create-a-migration-file)

`wp migrate create add_price_table`

```
