Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Phalcon\Db\Column;
- use Phalcon\Db\Index;
- use Phalcon\Db\Reference;
- use Phalcon\Mvc\Model\Migration;
- /**
- * Class TestMigration_1000005000
- */
- class TestMigration_1000005000 extends Migration
- {
- /**
- * Define the table structure
- *
- * @return void
- */
- public function morph()
- {
- $this->morphTable('test', array(
- 'columns' => array(
- new Column(
- 'test',
- array(
- 'type' => Column::TYPE_INTEGER,
- 'first' => true
- )
- ),
- new Column(
- 'testcolumn',
- array(
- 'type' => Column::TYPE_CHAR,
- 'size' => 1,
- 'after' => 'test'
- )
- )
- ),
- )
- );
- }
- /**
- * Run the migrations
- *
- * @return void
- */
- public function up()
- {
- }
- /**
- * Reverse the migrations
- *
- * @return void
- */
- public function down()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement