release; } /** * {@inheritdoc} */ public function concern() { return $this->concern; } /** * {@inheritdoc} */ public function require_all_upgrades() { return false; } /** * {@inheritdoc} */ public function getDoctrineMigrations() { return []; } /** * {@inheritdoc} */ public function apply(base $appbox, Application $app) { foreach(['type', 'created', 'updated', 'expiration'] as $t) { $sql = "ALTER TABLE `Tokens` ADD INDEX `".$t."` (`".$t."`);"; try { $stmt = $appbox->get_connection()->prepare($sql); $stmt->execute(); $stmt->closeCursor(); } catch (\Exception $e) { // the inex already exists ? } } return true; } }