hh
This commit is contained in:
1 parent
1e728726d0
commit
5a8b88b225
40 files changed
+1500
-8
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Handles the creation of table `hh`.
|
||||
*/
|
||||
class m181121_103329_create_hh_table extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->createTable('hh', [
|
||||
'id' => $this->primaryKey(),
|
||||
'hh_id' => $this->integer(11),
|
||||
'url' => $this->string(255)->notNull(),
|
||||
'title' => $this->string(255),
|
||||
'dt_add' => $this->integer(11),
|
||||
'photo' => $this->string(255)
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
$this->dropTable('hh');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user