mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
38 lines
943 B
PHP
38 lines
943 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class ModifyNullableComercialSoporte extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$this->forge->modifyColumn('clientes', [
|
|
'comercial_id' => [
|
|
'type' => 'int(10) unsigned',
|
|
'null' => true, // Permitir valores NULL
|
|
],
|
|
'soporte_id' => [
|
|
'type' => 'int(10) unsigned',
|
|
'null' => true, // Permitir valores NULL
|
|
],
|
|
]);
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->modifyColumn('clientes', [
|
|
'comercial_id' => [
|
|
'type' => 'int(10) unsigned',
|
|
'null' => false,
|
|
],
|
|
'soporte_id' => [
|
|
'type' => 'int(10) unsigned',
|
|
'null' => false,
|
|
],
|
|
]);
|
|
}
|
|
}
|