Logo white

Administrator / auto-life

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • auto-life
  • protected
  • migrations
  • m140213_202829_tuningset_rank.php
  • first commit
    a1684257
    Administrator authored
    2016-03-02 23:21:21 +0200  
    Browse Code ยป
m140213_202829_tuningset_rank.php 377 Bytes
Edit Raw Blame History Permalink
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);
    }
}