Created
March 5, 2015 10:45
-
-
Save aavrug/940634042245f9632d59 to your computer and use it in GitHub Desktop.
migration issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Phinx\Migration\AbstractMigration; | |
class CreatePagesTable extends AbstractMigration | |
{ | |
// public function change() | |
// { | |
// } | |
public function up() | |
{ | |
$pages = $this->table('pages'); | |
$pages->addColumn('title','string'); | |
$pages->addColumn('key','string'); | |
$pages->addColumn('content','text'); | |
$pages->addColumn('created','datetime'); | |
$pages->addColumn('modified','datetime'); | |
$pages->create(); | |
} | |
public function drop() | |
{ | |
$this->dropTable('pages'); | |
} | |
} | |
gaurav@karz:~/public_html/cake3test/startup < master > âš¡ bin/cake migrations migrate --plugin PageManager | |
Welcome to CakePHP v3.0.0-RC2 Console | |
--------------------------------------------------------------- | |
App : src | |
Path: /home/gaurav/public_html/cake3test/startup/src/ | |
--------------------------------------------------------------- | |
using migration path /home/gaurav/public_html/cake3test/startup/plugins/PageManager/config/Migrations | |
using environment default | |
using adapter mysql | |
using database my_app | |
All Done. Took 0.0007s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment