doctor-appointment-system/app/Database/Migrations/2026-05-07-120525_AddCreatedByToDoctorBookings.php
2026-05-08 12:22:08 +05:30

27 lines
585 B
PHP

<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddCreatedByToDoctorBookings extends Migration
{
public function up()
{
$this->forge->addColumn('doctor_bookings', [
'created_by' => [
'type' => 'INT',
'constraint' => 11,
'unsigned' => false,
'null' => true,
'after' => 'status',
],
]);
}
public function down()
{
$this->forge->dropColumn('doctor_bookings', 'created_by');
}
}