Blame view

console/migrations/m161228_142205_buys.php 538 Bytes
eb56e5f2   Administrator   first commit
1
2
3
4
  <?php
  
  use yii\db\Migration;
  
4bf42036   Alexey Boroda   -Modals ready
5
  class m161228_142205_buys extends Migration
eb56e5f2   Administrator   first commit
6
7
8
  {
      public function up()
      {
4bf42036   Alexey Boroda   -Modals ready
9
10
11
12
13
14
15
16
17
          $this->createTable('buys', [
              'id' => $this->primaryKey(),
              'username' => $this->string(),
              'email' => $this->string(),
              'phone' => $this->string(),
              'model_name' => $this->string(),
              'model_year' => $this->string(),
              'model_color' => $this->string(),
          ]);
eb56e5f2   Administrator   first commit
18
19
20
21
      }
  
      public function down()
      {
4bf42036   Alexey Boroda   -Modals ready
22
          $this->dropTable('buys');
eb56e5f2   Administrator   first commit
23
24
      }
  }