release; } public function require_all_upgrades() { return false; } /** * * @return Array */ function concern() { return $this->concern; } function apply(base &$databox) { $sql = 'SELECT id FROM pref WHERE prop = "indexes"'; $stmt = $databox->get_connection()->prepare($sql); $stmt->execute(); $rowcount = $stmt->rowCount(); $stmt->closeCursor(); if ($rowcount == 0) { $sql = 'INSERT INTO pref (id, prop, value, locale, updated_on, created_on) VALUES (null, "indexes", "1", "", NOW(), NOW())'; $stmt = $databox->get_connection()->prepare($sql); $stmt->execute(); $stmt->closeCursor(); } return true; } }