Blame view

console/migrations/m160209_151553_employment_data.php 695 Bytes
02524a34   Yarik   test
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
32
33
  <?php
  
      use yii\db\Migration;
  
      class m160209_151553_employment_data extends Migration
      {
  
          public function up()
          {
              $this->batchInsert('{{%employment}}', [ 'name' ], [
                  [ 'Проектная' ],
                  [ 'Полная' ],
                  [ 'Не полная' ],
                  [ 'Удаленная' ],
              ]);
          }
  
          public function down()
          {
              $this->delete('employment');
          }
  
          /*
          // Use safeUp/safeDown to run migration code within a transaction
          public function safeUp()
          {
          }
  
          public function safeDown()
          {
          }
          */
      }