25 lines
477 B
PHP
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');
|
|
}
|
|
}
|