Hi,
When I run a migration it says its migrated up successfully but it doesn’t create a table in the database?
Here is my code:
<?php
class m130910_194856_create_tbl_project extends CDbMigration
{
public function safeUp()
{
$this->createTable('tbl_project', array(
'id' => 'pk',
'name' => 'string NOT NULL',
'description' => 'text NOT NULL',
'create_time' => 'datetime DEFAULT NULL',
'create_user_id' => 'int(11) DEFAULT NULL',
'update_time' => 'datetime DEFAULT NULL',
'update_user_id' => 'int(11) DEFAULT NULL',
));
}
public function safeDown()
{
$this->dropTable('tbl_project');
}
}