项目作者: mucahitnezir

项目描述 :
This project aims to facilitate migration system while developing applications with CodeIgniter 3.x
高级语言: PHP
项目地址: git://github.com/mucahitnezir/codeigniter3x-migration.git
创建时间: 2017-05-02T19:03:40Z
项目社区:https://github.com/mucahitnezir/codeigniter3x-migration

开源协议:

下载


codeigniter3x-migration

This project aims to facilitate migration system while developing applications with CodeIgniter 3.x

Installation

Only, you have to copy all folders to application folder.

Note: Don’t modify any settings.

Usage

The usage of this project is very easy. This project has only 3 commands.

a. Create/Generate Migration File

If you want to create a migration file, you have to use followed command in terminal at root directory.

  1. php index.php migration generate <fileName>

This command creates a migration file in application/migrations folder.

b. Migrate all migration files

If you want to migrate all migration files, you have to use followed command in terminal at root directory.

  1. php index.php migration
  2. or
  3. php index.php migration latest

c. Migrate a migration via version

If you want to migrate one migration via version, you have to use followed command in terminal at root directory.

  1. php index.php migration version <versionkey>

Note: versionKey is the timestamp at the file name.