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