php class m150505_130933_reaso nApiUsers extends CDbMigration public f

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<?php
class m150505_130933_reasonApiUsers extends CDbMigration
{
public function up()
{
$this->execute("ALTER TABLE `api_users` ADD COLUMN `reason` VARCHAR(255) NOT NULL AFTER `email`");
}
public function down()
{
$this->execute("ALTER TABLE `api_users` DROP COLUMN `reason`");
}
}