Download the PHP package console-helpers/db-migration without Composer
On this page you can find all versions of the php package console-helpers/db-migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download console-helpers/db-migration
More information about console-helpers/db-migration
Files in console-helpers/db-migration
Download console-helpers/db-migration
More information about console-helpers/db-migration
Files in console-helpers/db-migration
Vendor console-helpers
Package db-migration
Short Description Database migrations made simple
License BSD-3-Clause
Package db-migration
Short Description Database migrations made simple
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package db-migration
DB-Migration
DB-Migration is a library allows to run migrations on SQLite databases with ease.
Goals, when developing the library:
- allow initializing library without knowing database connection details upfront
- allow creating new migration file without knowing database connection details upfront
- allow using several databases in parallel
- being framework agnostic
Usage
Initialization
Creating new migration
The following code will create YYYYMMDD_HHMM_name.ext
migration file in configured migration folder and return it's name.
As a result:
- the
/path/to/migrations/20160519_2155_example_migration.sql
file would be created - the
20160519_2155_example_migration.sql
would be returned to$migration_name
variable
Migration Templates
SQL:
Empty file.
PHP:
Running migrations
Installation
Execute this command to add dependencies:
Requirements
Contributing
See CONTRIBUTING file.
License
DB-Migration is released under the BSD-3-Clause License. See the bundled LICENSE file for details.
All versions of db-migration with dependencies
PHP Build Version
Package Version
The package console-helpers/db-migration contains the following files
Loading the files please wait ....