Files
alrahma_sunday_school/app/Database/Migrations/2024-11-05-000700_AddBatchNumberToReimbursements.php
T
2026-02-10 22:11:06 -05:00

31 lines
667 B
PHP

<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddBatchNumberToReimbursements extends Migration
{
public function up()
{
$fields = [
'batch_number' => [
'type' => 'INT',
'constraint' => 11,
'unsigned' => true,
'default' => 0,
'null' => false,
'after' => 'reimbursement_method',
],
];
$this->forge->addColumn('reimbursements', $fields);
}
public function down()
{
$this->forge->dropColumn('reimbursements', 'batch_number');
}
}