27 lines
585 B
PHP
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');
|
|
}
|
|
}
|