fix school year and related issues
Tests / PHPUnit (push) Failing after 34s

This commit is contained in:
root
2026-07-30 00:48:54 -04:00
parent f8f00c70c8
commit 81a72a4c59
27 changed files with 1512 additions and 52 deletions
@@ -0,0 +1,32 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddFallMakeupExamToSchoolYears extends Migration
{
public function up(): void
{
if (! $this->db->tableExists('school_years') || $this->db->fieldExists('fall_makeup_exam_on', 'school_years')) {
return;
}
$this->forge->addColumn('school_years', [
'fall_makeup_exam_on' => [
'type' => 'DATE',
'null' => true,
'after' => 'registration_ends_on',
],
]);
}
public function down(): void
{
if (! $this->db->tableExists('school_years') || ! $this->db->fieldExists('fall_makeup_exam_on', 'school_years')) {
return;
}
$this->forge->dropColumn('school_years', 'fall_makeup_exam_on');
}
}