fix school year for all tables
Tests / PHPUnit (push) Failing after 1m20s

This commit is contained in:
root
2026-07-18 14:45:38 -04:00
parent 4db8334a3c
commit 716cc8b8d3
125 changed files with 2315 additions and 81 deletions
@@ -8,6 +8,10 @@ class AddClassSectionToEventCharges extends Migration
{
public function up()
{
if (! $this->db->tableExists('event_charges')) {
return;
}
$fields = [
'class_section_id' => [
'type' => 'INT',
@@ -25,7 +29,7 @@ class AddClassSectionToEventCharges extends Migration
public function down()
{
if ($this->db->fieldExists('class_section_id', 'event_charges')) {
if ($this->db->tableExists('event_charges') && $this->db->fieldExists('class_section_id', 'event_charges')) {
$this->forge->dropColumn('event_charges', 'class_section_id');
}
}