Source

topics / protected / migrations / m120521_034917_initial_data.php

Full commit
<?php

class m120521_034917_initial_data extends CDbMigration
{
	public function up()
	{
        $this->execute("INSERT INTO `{{config}}` (`key`, `value`) VALUES
        ('hostname', 's:7:\"not_set\";');");
	}

	public function down()
	{
		echo "m120521_034917_initial_data does not support migration down.\n";
		return false;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}