2012-01-31 17:42:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
class m120127_152205_tbl_candidatos extends CDbMigration
|
|
|
|
|
{
|
|
|
|
|
public function up()
|
|
|
|
|
{
|
|
|
|
|
$this->createTable('tbl_candidatos', array(
|
|
|
|
|
'id' => 'pk',
|
2012-03-01 19:30:11 +00:00
|
|
|
'estado' => 'string',
|
2012-01-31 17:42:47 +00:00
|
|
|
'dni' => 'string',
|
|
|
|
|
'nombre' => 'string',
|
|
|
|
|
'apellidos' => 'string',
|
|
|
|
|
'email' => 'string',
|
|
|
|
|
'telefono_fijo' => 'string',
|
|
|
|
|
'telefono_movil' => 'string',
|
|
|
|
|
'sexo' => 'string',
|
|
|
|
|
'fecha_nacimiento' => 'date',
|
|
|
|
|
'lugar_nacimiento' => 'string',
|
2012-02-08 15:02:38 +00:00
|
|
|
'localidad' => 'string',
|
2012-02-01 15:41:14 +00:00
|
|
|
'fecha_alta' => 'datetime',
|
|
|
|
|
'usuario_alta' => 'integer',
|
|
|
|
|
'fecha_modificacion' => 'datetime',
|
|
|
|
|
'usuario_modificacion' => 'integer',
|
2012-01-31 17:42:47 +00:00
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function down()
|
|
|
|
|
{
|
|
|
|
|
$this->dropTable('tbl_candidatos');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
// Use safeUp/safeDown to do migration with transaction
|
|
|
|
|
public function safeUp()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function safeDown()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
}
|