fix enrollment, invoice, payment and financila aid
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 47s
Tests / PHPUnit (push) Failing after 1m19s

This commit is contained in:
root
2026-08-24 21:20:58 -04:00
parent 576da3bd78
commit 608aca79b8
30 changed files with 3327 additions and 774 deletions
@@ -0,0 +1,35 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddHouseholdIncomeToFinancialAidRequests extends Migration
{
public function up()
{
if (! $this->db->tableExists('financial_aid_requests')) {
return;
}
if (! in_array('household_income', $this->db->getFieldNames('financial_aid_requests'), true)) {
$this->forge->addColumn('financial_aid_requests', [
'household_income' => [
'type' => 'DECIMAL',
'constraint' => '12,2',
'null' => true,
'after' => 'household_size',
],
]);
}
}
public function down()
{
if ($this->db->tableExists('financial_aid_requests')
&& in_array('household_income', $this->db->getFieldNames('financial_aid_requests'), true)
) {
$this->forge->dropColumn('financial_aid_requests', 'household_income');
}
}
}
@@ -0,0 +1,50 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class RemoveRegistrationAndMandatoryFees extends Migration
{
public function up()
{
if (! $this->db->tableExists('school_years')) {
return;
}
foreach (['registration_fee', 'mandatory_fees'] as $column) {
if ($this->db->fieldExists($column, 'school_years')) {
$this->forge->dropColumn('school_years', $column);
}
}
}
public function down()
{
if (! $this->db->tableExists('school_years')) {
return;
}
if (! $this->db->fieldExists('registration_fee', 'school_years')) {
$this->forge->addColumn('school_years', [
'registration_fee' => [
'type' => 'DECIMAL',
'constraint' => '10,2',
'default' => 0,
'after' => 'adult_student_registration_enabled',
],
]);
}
if (! $this->db->fieldExists('mandatory_fees', 'school_years')) {
$this->forge->addColumn('school_years', [
'mandatory_fees' => [
'type' => 'DECIMAL',
'constraint' => '10,2',
'default' => 0,
'after' => 'tuition_due_at_registration',
],
]);
}
}
}