luyadev/luya-module-news

View on GitHub
src/admin/migrations/m161212_084323_add_teaser_field.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

use yii\db\Migration;

class m161212_084323_add_teaser_field extends Migration
{
    public function safeUp()
    {
        $this->addColumn('news_article', 'teaser_text', $this->text());
    }

    public function safeDown()
    {
        $this->dropColumn('news_article', 'teaser_text');
    }
}