8 lines
410 B
PHP
8 lines
410 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
class Migration_Add_po_budget_account extends CI_Migration
|
|
{
|
|
public function up(){if(!$this->db->field_exists('budget_account_id','purchase_order_lines'))$this->db->query('ALTER TABLE purchase_order_lines ADD budget_account_id INT NULL');}
|
|
public function down(){throw new RuntimeException('Gunakan backup untuk rollback budget PO.');}
|
|
}
|