mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
39 lines
865 B
PHP
39 lines
865 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AlterColumnServiciosCliente extends Migration
|
|
{
|
|
protected array $ALTER_COLUMNS = [
|
|
"deleted_at" => [
|
|
"name" => "deleted_at",
|
|
"type" => "datetime",
|
|
"default" => null,
|
|
"null" => true,
|
|
],
|
|
"updated_at" => [
|
|
"name" => "updated_at",
|
|
"type" => "datetime",
|
|
"default" => null,
|
|
"null" => true,
|
|
],
|
|
];
|
|
public function up()
|
|
{
|
|
$this->forge->modifyColumn("servicios_cliente", $this->ALTER_COLUMNS);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->addField([
|
|
"is_deleted" => [
|
|
"type" => "boolean",
|
|
"default" => false,
|
|
"null" => false,
|
|
]
|
|
]);
|
|
}
|
|
}
|