Skip to content

Commit

Permalink
added update_db function for future use
Browse files Browse the repository at this point in the history
  • Loading branch information
btcgear committed May 14, 2013
1 parent 29fa09d commit 02807da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion upload/admin/controller/payment/bitcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private function validate() {
public function index() {
$this->load->language('payment/'.$this->payment_module_name);
$this->load->model('setting/setting');

if (($this->request->server['REQUEST_METHOD'] == 'POST') && ($this->validate())) {
$this->model_setting_setting->editSetting($this->payment_module_name, $this->request->post);
$this->session->data['success'] = $this->language->get('text_success');
Expand Down Expand Up @@ -212,4 +212,11 @@ public function index() {

$this->response->setOutput($this->render(TRUE), $this->config->get('config_compression'));
}

public function update_db() {

$this->db->query("ALTER TABLE ". DB_PREFIX ."order ADD bitcoin_total DOUBLE AFTER currency_value;");
$this->db->query("ALTER TABLE ". DB_PREFIX ."order ADD bitcoin_address VARCHAR(34) AFTER bitcoin_total;");

}
}

0 comments on commit 02807da

Please sign in to comment.