Blame view

console/migrations/m160203_082111_jobs.php 765 Bytes
06d508f3   Administrator   add Vitaliy's wid...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  
  use yii\db\Migration;
  
  class m160203_082111_jobs extends Migration
  {
      public function up()
      {
          $tableOptions = null;
  
          $this->createTable('{{%job}}', [
              'job_id' => $this->primaryKey(),
              'name' => $this->string(255)->notNull(),
              'link' => $this->string(255),
              'date_start' => $this->timestamp(),
              'date_end' => $this->timestamp(),
              'position' =>  $this->string(255),
              'user_id' =>  $this->integer(),
              'total_count' =>  $this->integer(),
              'complete_count' =>  $this->integer(),
e9013fc3   Yarik   test
21
              'current' => $this->smallInteger(),
06d508f3   Administrator   add Vitaliy's wid...
22
23
24
25
26
27
28
29
30
          ], $tableOptions);
  
      }
  
      public function down()
      {
          $this->dropTable('{{%job}}');
      }
  }