El código es este:
Código:
Y en el archivo main.php tengo correctamente configurada mi bd con su nombre, usuario y password.class m120509_224029_create_project_table extends CDbMigration
{
public function up()
{
$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',
), 'ENGINE=InnoDB');
}
public function down()
{
$this->dropTable('tbl_project');
}
}
Curiosamente si escribo el comando >Yiic migrate history , me devuelve el historial de las migraciones (que en realidad nunca sucedieron, porque en la db no hay tablas nuevas).
Un saludo y gracias de antemano


