Incam_IntranetNueva/www/protected/migrations/m120725_101018_tbl_estados_candidatos.php
david 6a9b925abb - Cambio de nombre de modelo: CandidatoEstado => EstadoCandidato
- Cambio en el layout 'default' para registrar mejor los JS y los CSS.
- Ficheros propios estilos CSS para jQuery UI

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_IntranetNueva/trunk@70 77cfc57b-8ef4-1849-9df6-4a38aa5da120
2012-07-25 14:59:13 +00:00

33 lines
764 B
PHP

<?php
class m120725_101018_tbl_estados_candidatos extends CDbMigration
{
public function up()
{
$this->createTable('tbl_estados_candidatos', array(
'id' => 'pk',
'descripcion' => 'string NOT NULL',
));
$this->dropColumn('tbl_candidatos', 'estado');
$this->addColumn('tbl_candidatos', 'id_estado', 'integer');
}
public function down()
{
$this->dropTable('tbl_estados_candidatos');
$this->dropColumn('tbl_candidatos', 'id_estado');
$this->addColumn('tbl_candidatos', 'estado', 'string');
}
/*
// Use safeUp/safeDown to do migration with transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}