Download the PHP package tigron/skeleton-migrate without Composer
On this page you can find all versions of the php package tigron/skeleton-migrate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tigron/skeleton-migrate
More information about tigron/skeleton-migrate
Files in tigron/skeleton-migrate
Download tigron/skeleton-migrate
More information about tigron/skeleton-migrate
Files in tigron/skeleton-migrate
Vendor tigron
Package skeleton-migrate
Short Description Database migration for Skeleton
License MIT
Package skeleton-migrate
Short Description Database migration for Skeleton
License MIT
Please rate this library. Is it a good library?
Informations about the package skeleton-migrate
skeleton-migrate
Description
Migrations for Skeleton. Migrations are used to track database changes.
Installation
Installation via composer:
composer require tigron/skeleton-migrate
Howto
Set the path for migrations
/**
* \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
\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:
- 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
Get status
Run all pending migrations
Run a specific migration (version is not stored in the version file)
All versions of skeleton-migrate with dependencies
PHP Build Version
Package Version
No informations.
The package tigron/skeleton-migrate contains the following files
Loading the files please wait ....