mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
32 lines
685 B
PHP
32 lines
685 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AddAliasOtColumnMaquinasTable extends Migration
|
|
{
|
|
|
|
|
|
public function up()
|
|
{
|
|
$this->forge->addColumn('albaranes_lineas', [
|
|
'cajas' => [
|
|
'type' => 'INT',
|
|
'constraint' => 11,
|
|
'null' => true,
|
|
],
|
|
'unidades_cajas' => [
|
|
'type' => 'INT',
|
|
'constraint' => 11,
|
|
'null' => true,
|
|
]
|
|
]);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn('albaranes_lineas', ['cajas', 'unidades_cajas']);
|
|
}
|
|
}
|