Logo white

alex / artplast

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • artplast
  • console
  • migrations
  • m180403_091940_alter_table_page.php
  • first commit
    c420c609
    alex authored
    2018-08-08 17:26:35 +0300  
    Browse Code ยป
m180403_091940_alter_table_page.php 414 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php

use yii\db\Migration;

/**
 * Class m180403_091940_alter_table_page
 */
class m180403_091940_alter_table_page extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('page', 'image_id', $this->integer());
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('page', 'image_id');
    }
    
}