add migration, fix delete tmp document, update extend controllers i api

This commit is contained in:
iIronside
2022-01-11 00:20:54 +03:00
parent f077df791f
commit 77b5db56b7
10 changed files with 608 additions and 8 deletions

View File

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