ithinkdone
This commit is contained in:
@ -180,6 +180,28 @@ class Welcome extends CI_Controller
|
||||
if ($query->num_rows() == 0) {
|
||||
$this->db->query("ALTER TABLE tbl_purchases ADD COLUMN purchase_ref VARCHAR(50)");
|
||||
}
|
||||
$query = $this->db->query("SHOW COLUMNS FROM tbl_accounts LIKE 'account_image'");
|
||||
|
||||
// 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_image text");
|
||||
}
|
||||
|
||||
$query = $this->db->query("SHOW COLUMNS FROM tbl_accounts LIKE 'account_number'");
|
||||
|
||||
// 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_number VARCHAR(50)");
|
||||
}
|
||||
|
||||
$query = $this->db->query("SHOW COLUMNS FROM tbl_accounts LIKE 'account_branch'");
|
||||
|
||||
// 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_branch VARCHAR(50)");
|
||||
}
|
||||
|
||||
|
||||
$query = $this->db->query("SHOW COLUMNS FROM tbl_branches LIKE 'vat'");
|
||||
|
||||
// If the column doesn't exist, alter the table to add it
|
||||
|
Reference in New Issue
Block a user