Incam_IntranetNueva/www/protected/migrations/m120504_095056_tbl_candidatos_documentos.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
875 B
PHP

<?php
class m120504_095056_tbl_candidatos_documentos extends CDbMigration
{
public function up()
{
$this->createTable('tbl_candidatos_documentos', array(
'id' => 'pk',
'candidato_id' => 'integer NOT NULL',
'fecha' => 'datetime',
'tipo' => 'string',
'nombre_fichero' => 'string',
));
$this->addForeignKey('fk_candidatos_documentos_1', 'tbl_candidatos_documentos', 'candidato_id', 'tbl_candidatos', 'id', 'CASCADE', 'CASCADE');
}
public function down()
{
$this->dropForeignKey('fk_candidatos_documentos_1', 'tbl_candidatos_documentos');
$this->dropTable('tbl_candidatos_documentos');
}
/*
// Use safeUp/safeDown to do migration with transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}