Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
m120508_085222_alter_like_content_id.php
1 <?php
2 
3 class m120508_085222_alter_like_content_id extends CDbMigration
4 {
5  public function up()
6  {
7  $this->alterColumn('{{likes}}', 'content_id', 'string not null');
8  }
9 
10  public function down()
11  {
12  $this->alterColumn('{{likes}}', 'content_id', 'integer');
13  }
14 
15  /*
16  // Use safeUp/safeDown to do migration with transaction
17  public function safeUp()
18  {
19  }
20 
21  public function safeDown()
22  {
23  }
24  */
25 }