servicio cliente tareas

This commit is contained in:
amazuecos
2024-12-10 07:35:25 +01:00
parent 0b4105f5bd
commit 9a57312601
17 changed files with 615 additions and 16 deletions

View File

@ -0,0 +1,38 @@
<?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,
]
]);
}
}