24 lines
495 B
PHP
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.
|
|
}
|
|
}
|