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

36 lines
768 B
PHP

<?php
use yii\db\Migration;
/**
* Handles the creation of table `vk`.
*/
class m170328_142237_create_vk_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('vk', [
'id' => $this->primaryKey(),
'www' => $this->string(),
'skype' => $this->string(),
'instagram' => $this->string(),
'twitter' => $this->string(),
'facebook' => $this->string(),
'phone1' => $this->string(),
'phone2' => $this->string(),
'phone3' => $this->string(),
'phone4' => $this->string(),
]);
}
/**
* @inheritdoc
*/
public function down()
{
$this->dropTable('vk');
}
}