Logo white

Eugeny Galkovskiy / odoo-landing

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • odoo-landing
  • console
  • migrations
  • m171123_142225_add_gallery_column_to_...
  • img from gallery in static page finish
    088f364d
    Timur Kastemirov authored
    2017-11-27 12:02:51 +0200  
    Browse Code ยป
m171123_142225_add_gallery_column_to_page_table.php 415 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
<?php

use yii\db\Migration;

/**
 * Handles adding gallery to table `page`.
 */
class m171123_142225_add_gallery_column_to_page_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function up()
    {
        $this->addColumn('page', 'gallery', $this->string(255));
    }

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