2017 © Pedro Peláez
 

library skeleton-migrate

Database migration for Skeleton

image

tigron/skeleton-migrate

Database migration for Skeleton

  • Friday, June 1, 2018
  • by tigron
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,168 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 13 Versions
  • 9 % Grown

The README.md

skeleton-migrate

Description

Migrations for Skeleton. Migrations are used to track database changes., (*1)

Installation

Installation via composer:, (*2)

composer require tigron/skeleton-migrate

Howto

Set the path for migrations, (*3)

/**
 * \Skeleton\Database\Migration\Config::$migration_directory is deprecated
 * Use \Skeleton\Database\Migration\Config::$migration_path instead
 */
\Skeleton\Database\Migration\Config::$migration_path = $some_very_cool_path;

Choose where you want to store the version, (*4)

\Skeleton\Database\Migration\Config::$version_storage  = 'file';  // Version will be stored in db_version json file


\Skeleton\Database\Migration\Config::$version_storage  = 'database';  // Version will be stored in a database
\Skeleton\Database\Migration\Config::$database_table  = 'db_version'; // Version will be stored in this database table

Remark:, (*5)

  • If the database table does not exists, it will be created automatically
  • If $version_storage is set to 'database' but a db_version file is found, all versions will be converted to the database

Create new migration, (*6)

skeleton migrate:create <name>
skeleton migrate:create <package-name>/<name>

Get status, (*7)

skeleton migrate:status

Run all pending migrations, (*8)

skeleton migrate:up

Run a specific migration (version is not stored in the version file), (*9)

skeleton migrate:run <Ymd_His>

The Versions

01/06 2018

dev-master

9999999-dev

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

01/06 2018

v0.1.8

0.1.8.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

03/04 2018

v0.1.7

0.1.7.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

03/04 2018

v0.1.6

0.1.6.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

10/11 2017

0.1.5

0.1.5.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

06/11 2017

0.1.4

0.1.4.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

05/10 2016

0.1.3

0.1.3.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

12/08 2016

0.1.2

0.1.2.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

06/07 2016

v0.1.1

0.1.1.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

29/06 2016

v0.1.0

0.1.0.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

14/02 2016

v0.0.3

0.0.3.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

13/11 2015

v0.0.2

0.0.2.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA

14/10 2015

v0.0.1

0.0.1.0

Database migration for Skeleton

  Sources   Download

MIT

by Tigron BVBA