Download the PHP package php-bread-and-butter/codeignitermigration without Composer
On this page you can find all versions of the php package php-bread-and-butter/codeignitermigration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-bread-and-butter/codeignitermigration
More information about php-bread-and-butter/codeignitermigration
Files in php-bread-and-butter/codeignitermigration
Package codeignitermigration
Short Description Codeigniter Migration
License MIT
Homepage https://github.com/php-bread-and-butter/ci-migration
Informations about the package codeignitermigration
Customized CodeIgniter bare migration package to support command line migrate and supress to run the up and down method in the migration file. Added support for .env file config
Requirements
- To load .env file "vlucas/phpdotenv" package is required
Installation
Usage
OR, you can also CD to the package directory.
The above example will create a new migration file application/migrations/{YmdHis}_add_new_post_table.php where {YmdHis} would be the current timestamp. You can also use CamelCase style for migration name such as AddNewPostTable, but the tool will convert it to snake_case form like add_new_post_table. The default generated content would be like this:
You can modify the file according to your need.
Alternate usage of the command
Now execute migrate
The migration can be rolled back using
Replace ${VERSION} with {YmdHis}, where {YmdHis} would be the timestamp of previous migration file, like 20211002092605
All versions of codeignitermigration with dependencies
ext-gd Version *
ext-json Version *
ext-mbstring Version *
vlucas/phpdotenv Version ^5.3