public function createDB() { if (!$this->db->tableExists('migration')) { $sql = "\r\n\t\t\tCREATE TABLE `migration`\r\n\t\t\t(\r\n\t\t\t\t`id` INT PRIMARY KEY NOT NULL AUTO_INCREMENT,\r\n\t\t\t\t`name` VARCHAR(255) NOT NULL,\r\n\t\t\t\t`date` DATETIME NOT NULL,\r\n\t\t\t\t`isUp` INT NOT NULL\r\n\t\t\t);\r\n\t\t"; $this->db->query($sql); } }
public function execute($sql) { $this->db->query($sql); $this->log->add($sql); }