Logo white

Alexey Boroda / kristal-estet

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • kristal-estet
  • console
  • migrations
  • m170928_095137_add_column_to_image_ta...
  • -Persones ready
    8ccb8fe5
    Alexey Boroda authored
    2017-09-29 11:06:07 +0300  
    Browse Code ยป
m170928_095137_add_column_to_image_table.php 373 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
    
    use yii\db\Migration;
    
    class m170928_095137_add_column_to_image_table extends Migration
    {
        public function safeUp()
        {
            $this->addColumn('ImageManager', 'gallery', $this->boolean());
        }
        
        public function safeDown()
        {
            $this->dropColumn('ImageManager', 'gallery');
        }
    }