add column document_type to template table

This commit is contained in:
iIronside
2022-01-14 15:39:09 +03:00
parent e09f38f24b
commit c1ff229aa7
8 changed files with 528 additions and 5 deletions

View File

@ -0,0 +1,22 @@
<?php
use yii\db\Migration;
/**
* Class m220114_113651_add_column_document_type_to_template_table
*/
class m220114_113651_add_column_document_type_to_template_table extends Migration
{
public function safeUp()
{
$this->addColumn('template', 'document_type', $this->integer()->defaultValue(null));
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('template', 'document_type');
}
}