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
@@ -9,6 +9,10 @@ class AddNoSchoolToCalendarEvents extends Migration
public function up()
{
$db = \Config\Database::connect();
if (! $db->tableExists('calendar_events')) {
return;
}
$cols = [];
try {
$cols = $db->getFieldNames('calendar_events');
@@ -31,6 +35,10 @@ class AddNoSchoolToCalendarEvents extends Migration
public function down()
{
if (! $this->db->tableExists('calendar_events')) {
return;
}
try {
$this->forge->dropColumn('calendar_events', 'no_school');
} catch (\Throwable $e) {
@@ -38,4 +46,3 @@ class AddNoSchoolToCalendarEvents extends Migration
}
}
}