mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
ots
This commit is contained in:
@ -8,6 +8,10 @@ use CodeIgniter\Database\RawSql;
|
||||
class OrdenTrabajoDatesTable extends Migration
|
||||
{
|
||||
protected array $COLUMNS = [
|
||||
"orden_trabajo_id" => [
|
||||
"type" => "INT",
|
||||
"unsigned" => true,
|
||||
],
|
||||
"fecha_entrada_at" => [
|
||||
"type" => "DATETIME",
|
||||
"null" => true,
|
||||
@ -33,11 +37,11 @@ class OrdenTrabajoDatesTable extends Migration
|
||||
"type" => "DATE",
|
||||
"null" => true,
|
||||
],
|
||||
"fecha_encuardernado_at" => [
|
||||
"fecha_encuadernado_at" => [
|
||||
"type" => "DATE",
|
||||
"null" => true,
|
||||
],
|
||||
"fecha_externo_at" => [
|
||||
"fecha_entrega_externo" => [
|
||||
"type" => "DATE",
|
||||
"null" => true,
|
||||
],
|
||||
@ -161,6 +165,8 @@ class OrdenTrabajoDatesTable extends Migration
|
||||
"null" => true,
|
||||
],
|
||||
]);
|
||||
$this->forge->addPrimaryKey('orden_trabajo_id');
|
||||
$this->forge->addForeignKey("orden_trabajo_id","ordenes_trabajo","id","CASCADE","CASCADE");
|
||||
$this->forge->createTable("orden_trabajo_dates", true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user