mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
34 lines
537 B
PHP
Executable File
34 lines
537 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\RawSql;
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AlterChatTableAddTitleColumn extends Migration
|
|
{
|
|
protected array $COLUMNS = [
|
|
|
|
"title" => [
|
|
"type" => "VARCHAR",
|
|
"constraint" => 255,
|
|
"null" => true
|
|
],
|
|
|
|
|
|
|
|
];
|
|
public function up()
|
|
{
|
|
|
|
$this->forge->addColumn("chats",$this->COLUMNS);
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
//
|
|
$this->forge->dropColumn("chats","title");
|
|
}
|
|
}
|