Files
alrahma_sunday_school/app/Database/Migrations/2026-08-27-000300_DropUnusedInvoiceLines.php
T
root 38644b32ae
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Failing after 1m19s
fix invoice and enrollment fees
2026-08-27 18:34:36 -04:00

24 lines
495 B
PHP

<?php
declare(strict_types=1);
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
final class DropUnusedInvoiceLines extends Migration
{
public function up(): void
{
if ($this->db->tableExists('invoice_lines')) {
$this->forge->dropTable('invoice_lines', true);
$this->db->resetDataCache();
}
}
public function down(): void
{
// invoice_lines was intentionally removed from the financial model.
}
}