table_prefix . "modules WHERE module_class = 'acp' AND module_langname = 'ACP_APS_POINTS'"; $result = $this->db->sql_query($sql); $module_id = $this->db->sql_fetchfield('module_id'); $this->db->sql_freeresult($result); return $module_id !== false; } /** * Assign migration file dependencies for this migration. * * @return array Array of migration files * @access public * @static */ static public function depends_on() { return ['\phpbb\db\migration\data\v32x\v327']; } /** * Add the Advanced Points System ACP module to the database. * * @return array Array of module data * @access public */ public function update_data() { return [ ['module.add', [ 'acp', 'ACP_CAT_DOT_MODS', 'ACP_APS_POINTS' ]], ['module.add', [ 'acp', 'ACP_APS_POINTS', [ 'module_basename' => '\phpbbstudio\aps\acp\main_module', 'modes' => ['settings', 'display', 'points', 'logs'], ], ]], ]; } }