doctor-appointment-system/app/Database/Migrations/2026-04-20-094846_AddServiceAndNoteToAppointments.php
2026-05-08 12:22:08 +05:30

25 lines
477 B
PHP

<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddServiceAndNoteToAppointments extends Migration
{
public function up()
{
$this->forge->addColumn('appointments', [
'note' => [
'type' => 'TEXT',
'null' => true,
'after' => 'status'
]
]);
}
public function down()
{
$this->forge->dropColumn('appointments', 'note');
}
}