This commit is contained in:
+8
@@ -8,6 +8,10 @@ class AddYearlyBatchNumberToReimbursementBatches extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
if (! $this->db->tableExists('reimbursement_batches') || $this->db->fieldExists('yearly_batch_number', 'reimbursement_batches')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$fields = [
|
||||
'yearly_batch_number' => [
|
||||
'type' => 'INT',
|
||||
@@ -26,6 +30,10 @@ class AddYearlyBatchNumberToReimbursementBatches extends Migration
|
||||
|
||||
public function down()
|
||||
{
|
||||
if (! $this->db->tableExists('reimbursement_batches') || ! $this->db->fieldExists('yearly_batch_number', 'reimbursement_batches')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->forge->dropColumn('reimbursement_batches', 'yearly_batch_number');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user