1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-02-12 18:11:52 +00:00
yii2-nomer/migrations/m170210_113137_create_facebook_table.php

33 lines
622 B
PHP
Raw Permalink Normal View History

2020-02-05 03:34:26 +00:00
<?php
use yii\db\Migration;
/**
* Handles the creation of table `facebook`.
*/
class m170210_113137_create_facebook_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('facebook', [
'id' => $this->primaryKey(),
'tm' => $this->dateTime(),
'phone' => $this->string(),
'fb_id' => $this->string(),
'name' => $this->string(),
'photo' => $this->text()
]);
}
/**
* @inheritdoc
*/
public function down()
{
$this->dropTable('facebook');
}
}