Skip to content

Commit

Permalink
Create monero.php
Browse files Browse the repository at this point in the history
  • Loading branch information
serhack authored Jan 19, 2018
1 parent dd783c7 commit 107438f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions admin/model/extension/payment/monero.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

class ModelExtensionPaymentMonero extends Model {

public function install(){
$this->db->query("
CREATE TABLE `" . DB_PREFIX . "order_monero` (
`order_id` int(11) NOT NULL,
`payment_id` varchar(255) NOT NULL,
PRIMARY KEY `order_id` (`order_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
");
}

public function uninstall(){
$this->db->query("DROP TABLE IF EXISTS `" . DB_PREFIX . "order_monero`;");
}

}

?>

0 comments on commit 107438f

Please sign in to comment.