1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-02-12 10:01:52 +00:00
yii2-nomer/migrations/m170703_122115_create_orgs_table.php
2020-02-05 06:34:26 +03:00

33 lines
660 B
PHP

<?php
use yii\db\Migration;
/**
* Handles the creation of table `orgs`.
*/
class m170703_122115_create_orgs_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('orgs', [
'id' => $this->primaryKey(),
'name' => $this->string(),
'date' => $this->string(),
'maximum_sum' => $this->decimal(20, 4),
'inn' => $this->string(),
'number' => $this->string(),
'region' => $this->string()
]);
}
/**
* @inheritdoc
*/
public function down()
{
$this->dropTable('orgs');
}
}