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
@@ -0,0 +1,30 @@
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class AddDescriptionToInvoices extends Migration
{
public function up(): void
{
if (! $this->db->tableExists('invoices') || $this->db->fieldExists('description', 'invoices')) {
return;
}
$this->forge->addColumn('invoices', [
'description' => [
'type' => 'TEXT',
'null' => true,
'after' => 'status',
],
]);
}
public function down(): void
{
if ($this->db->tableExists('invoices') && $this->db->fieldExists('description', 'invoices')) {
$this->forge->dropColumn('invoices', 'description');
}
}
}