mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Arreglado bug en archivo de migrate del catalogo
This commit is contained in:
@ -43,7 +43,7 @@ class CreateCatalogoLibros extends Migration
|
|||||||
'resumen_breve' => ['type' => 'TEXT', 'null' => true],
|
'resumen_breve' => ['type' => 'TEXT', 'null' => true],
|
||||||
'sello' => ['type' => 'VARCHAR', 'constraint' => 255, 'null' => true],
|
'sello' => ['type' => 'VARCHAR', 'constraint' => 255, 'null' => true],
|
||||||
'paginas' => ['type' => 'INT'],
|
'paginas' => ['type' => 'INT'],
|
||||||
'tipo_impresion' => ['type' => 'ENUM', 'constraint' => ['negro','negrohq','color','colorhq'], 'null' => true],
|
'tipo_impresion' => ['type' => 'ENUM', 'constraint' => ['negro', 'negrohq', 'color', 'colorhq'], 'null' => true],
|
||||||
'comentarios' => ['type' => 'TEXT', 'null' => true],
|
'comentarios' => ['type' => 'TEXT', 'null' => true],
|
||||||
'negro_paginas' => ['type' => 'INT', 'null' => true],
|
'negro_paginas' => ['type' => 'INT', 'null' => true],
|
||||||
'negro_papel_id' => ['type' => 'INT', 'constraint' => 10, 'unsigned' => true, 'null' => true],
|
'negro_papel_id' => ['type' => 'INT', 'constraint' => 10, 'unsigned' => true, 'null' => true],
|
||||||
@ -71,9 +71,18 @@ class CreateCatalogoLibros extends Migration
|
|||||||
'sobrecubierta_pod_gramaje' => ['type' => 'DOUBLE', 'null' => true],
|
'sobrecubierta_pod_gramaje' => ['type' => 'DOUBLE', 'null' => true],
|
||||||
'encuadernacion_id' => ['type' => 'INT', 'constraint' => 10, 'unsigned' => true, 'null' => true],
|
'encuadernacion_id' => ['type' => 'INT', 'constraint' => 10, 'unsigned' => true, 'null' => true],
|
||||||
'ubicacion' => ['type' => 'VARCHAR', 'constraint' => 255, 'null' => true],
|
'ubicacion' => ['type' => 'VARCHAR', 'constraint' => 255, 'null' => true],
|
||||||
'created_at' => ['type' => 'TIMESTAMP', 'default' => 'CURRENT_TIMESTAMP'],
|
'created_at' => [
|
||||||
'updated_at' => ['type' => 'TIMESTAMP', 'null' => true],
|
'type' => 'TIMESTAMP',
|
||||||
'deleted_at' => ['type' => 'TIMESTAMP', 'null' => true],
|
'default' => new \CodeIgniter\Database\RawSql('CURRENT_TIMESTAMP'),
|
||||||
|
],
|
||||||
|
'updated_at' => [
|
||||||
|
'type' => 'TIMESTAMP',
|
||||||
|
'null' => true,
|
||||||
|
],
|
||||||
|
'deleted_at' => [
|
||||||
|
'type' => 'TIMESTAMP',
|
||||||
|
'null' => true,
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->forge->addKey('id', true);
|
$this->forge->addKey('id', true);
|
||||||
|
|||||||
Reference in New Issue
Block a user