Blame view

console/migrations/m170928_141247_create_persone_table.php 643 Bytes
8ccb8fe5   Alexey Boroda   -Persones ready
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  <?php
      
      use yii\db\Migration;
      
      /**
       * Handles the creation of table `persone`.
       */
      class m170928_141247_create_persone_table extends Migration
      {
          /**
           * @inheritdoc
           */
          public function up()
          {
              $this->createTable(
                  'persone',
                  [
                      'id'       => $this->primaryKey(),
                      'image_id' => $this->integer(),
                  ]
              );
          }
          
          /**
           * @inheritdoc
           */
          public function down()
          {
              $this->dropTable('persone');
          }
      }