PHPackages                             php-bread-and-butter/codeignitermigration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. php-bread-and-butter/codeignitermigration

ActiveLibrary[Database &amp; ORM](/categories/database)

php-bread-and-butter/codeignitermigration
=========================================

Codeigniter Migration

1.2.8(4y ago)02.3kMITPHPPHP &gt;=7.0CI failing

Since Dec 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/php-bread-and-butter/ci-migration)[ Packagist](https://packagist.org/packages/php-bread-and-butter/codeignitermigration)[ Docs](https://github.com/php-bread-and-butter/ci-migration)[ RSS](/packages/php-bread-and-butter-codeignitermigration/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

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
============

[](#requirements)

- To load .env file "vlucas/phpdotenv" package is required

Installation
============

[](#installation)

```
$ composer require php-bread-and-butter/codeignitermigration

```

Usage
=====

[](#usage)

```
$ php vendor/php-bread-and-butter/codeignitermigration/ci migration:bare add_new_post_table

```

OR, you can also CD to the package directory.

```
$ cd vendor/php-bread-and-butter/codeignitermigration
$ php ci migration:bare add_new_post_table

```

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:

```
