add document module

This commit is contained in:
iIronside
2022-11-08 18:01:42 +03:00
parent 8648f5458e
commit 45b110ac44
23 changed files with 986 additions and 0 deletions

View File

@ -0,0 +1,29 @@
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%document_template}}`.
*/
class m221108_135514_create_document_template_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%document_template}}', [
'id' => $this->primaryKey(),
'title' => $this->string(),
'template_body' => $this->text()
]);
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropTable('{{%document_template}}');
}
}