doctor-appointment-system/app/Database/Migrations/2026-04-28-000000_AddGenderToUsers.php
2026-05-08 12:22:08 +05:30

21 lines
426 B
PHP

<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddGenderToUsers extends Migration
{
public function up(): void
{
$this->forge->addColumn('users', [
'gender' => ['type' => 'VARCHAR', 'constraint' => 20, 'null' => true, 'after' => 'status'],
]);
}
public function down(): void
{
$this->forge->dropColumn('users', 'gender');
}
}