Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cithukyaw/bare-migration
A simple PHP command line tool to generate a CodeIgniter blank migration class file
https://github.com/cithukyaw/bare-migration
Last synced: about 16 hours ago
JSON representation
A simple PHP command line tool to generate a CodeIgniter blank migration class file
- Host: GitHub
- URL: https://github.com/cithukyaw/bare-migration
- Owner: cithukyaw
- License: mit
- Created: 2016-10-18T08:54:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-30T16:11:28.000Z (about 2 years ago)
- Last Synced: 2024-09-08T14:34:51.971Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeIgniter Bare Migration Generator
A simple PHP command line tool to generate a CodeIgniter blank migration class file. It is very similiar to `doctrine:migrations:generate` of Symfony [DoctrineMigrationsBundle](http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html).
## Installation using Composer
composer require phplucidframe/bare-migration
or
php composer.phar require phplucidframe/bare-migration
## Installation without Composer
If you don't want to use Composer, you can download the zip file and unzip it to your project vendor folder. However, make sure the directory path is `/vendor/phplucidframe/bare-migration/` where the script file `ci` should exist.
## Example Usage
$ php vendor/phplucidframe/bare-migration/ci migration:bare add_new_post_table
OR, you can also CD to the package directory.
$ cd vendor/phplucidframe/bare-migration
$ php ci migration:bare add_new_post_tableThe above example will create a new migration file `application/migrations/{YmdHis}_add_new_post_table.php` where `{YmdHis}` would be the current timestamp.