Blame view

console/migrations/m160905_154051_create_table_feedback.php 655 Bytes
7f87d6f9   Yarik   Modals.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  <?php
      
      use yii\db\Migration;
      
      class m160905_154051_create_table_feedback extends Migration
      {
          
          public function up()
          {
              $this->createTable('{{%feedback}}', [
                  'feedback_id' => $this->primaryKey(),
                  'name'        => $this->string(),
                  'phone'       => $this->string()
                                        ->notNull(),
                  'date_add'    => $this->integer(),
                  'ip'          => $this->string(),
              ]);
          }
          
          public function down()
          {
              $this->dropTable('{{%feedback}}');
          }
      }