Skip to content

Instantly share code, notes, and snippets.

@cornernote
Created November 22, 2012 02:04
Show Gist options
  • Save cornernote/4129033 to your computer and use it in GitHub Desktop.
Save cornernote/4129033 to your computer and use it in GitHub Desktop.
example migration
<?php
class m121114_001614_printmethod extends DbMigration
{
public function up()
{
$this->qs("ALTER TABLE `print_method` ADD COLUMN `default_printer_id` int(11) NOT NULL AFTER `printer_type`");
Yii::app()->cache->flush();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment