mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
20 lines
389 B
PHP
Executable File
20 lines
389 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class RemoveGroupFromUser extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$this->forge->dropColumn('auth_user', ['group']);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$sql = "ALTER TABLE `auth_user` ADD `group` varchar(216) COLLATE latin1_general_ci;";
|
|
$this->db->query($sql);
|
|
}
|
|
}
|