Blame view

protected/migrations/m140213_202829_tuningset_rank.php 377 Bytes
a1684257   Administrator   first commit
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
  <?php
  
  class m140213_202829_tuningset_rank extends CDbMigration
  {
  	public function up()
  	{
          $sql =<<<SQL
  
  ALTER TABLE `tuning_set`
  ADD COLUMN `rank` int(11) DEFAULT NULL AFTER `code`;
  
  SQL;
          $this->execute($sql);
      }
  
      public function down()
      {
          $sql =<<<SQL
  
  ALTER TABLE `tuning_set`
  DROP COLUMN `rank`;
  
  SQL;
          $this->execute($sql);
      }
  }