Download the PHP package shevaua/db-mysql-migrations without Composer
On this page you can find all versions of the php package shevaua/db-mysql-migrations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package db-mysql-migrations
How To?
1) You need an array with configuration params. Ex: /config/sample.php
$params = [
'folder' => 'path_to_folder',
'ignore' => [
// list of ignored subpathes
],
...
];
2) Create a config instance like this one
$config = new Shevaua\DB\Mysql\Migrations\Config($params);
3) Create a controller instance
$controller = new Shevaua\DB\Mysql\Migrations\MigrationController($config);
4) Let's start
/** Execute all new migrations */
$controller->migrate();
/** Rollback for one step back */
$controller->rollback();
Migration table
Migration table contains next columns:
- id: int
- group: int
- name: varchar
- migrated_at: timestamp
Advanced
There is a way to migrate/rollback migrations step by step
/** Execute all new migrations */
$controller->migrate($limit = 1);
/** Rollback for one step back */
$controller->rollback($limit = 1);
CHANGELOG
click here
CONTRIBUTE
click here
All versions of db-mysql-migrations with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
ext-mysqli Version ^7.1
ext-mysqli Version ^7.1
The package shevaua/db-mysql-migrations contains the following files
Loading the files please wait ....