indent testype purchase vat
This commit is contained in:
@ -234,5 +234,12 @@ class Welcome extends CI_Controller
|
||||
if ($query->num_rows() == 0) {
|
||||
$this->db->query("ALTER TABLE tbl_sales ADD COLUMN vatToggle INT(11)");
|
||||
}
|
||||
|
||||
$query = $this->db->query("SHOW COLUMNS FROM tbl_accounts LIKE 'account_bank'");
|
||||
|
||||
// If the column doesn't exist, alter the table to add it
|
||||
if ($query->num_rows() == 0) {
|
||||
$this->db->query("ALTER TABLE tbl_accounts ADD COLUMN account_bank VARCHAR(50)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user