Blame view

console/migrations/m160208_091942_vacancies.php 797 Bytes
a82865e3   Administrator   add Vitaliy's wid...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?php
  
  use yii\db\Migration;
  
  class m160208_091942_vacancies extends Migration
  {
      public function up()
      {
          $tableOptions = null;
  
          $this->createTable('{{%vacancy}}', [
              'vacancy_id' => $this->primaryKey(),
              'user_id' =>  $this->integer()->notNull(),
              'name' => $this->string(255)->notNull(),
              'link' => $this->string(255),
              'date_add' => $this->timestamp(),
              'user_add_id' => $this->integer(),
588209fc   Yarik   test
18
              'view_count' => $this->integer()->defaultValue(0),
a82865e3   Administrator   add Vitaliy's wid...
19
20
21
22
23
24
25
26
27
28
29
30
              'user_name' =>  $this->string(255),
              'city' =>  $this->string(255),
              'description' =>  $this->text(),
          ], $tableOptions);
  
      }
  
      public function down()
      {
          $this->dropTable('{{%vacancy}}');
      }
  }