table_prefix . "modules WHERE module_class = 'mcp' AND module_langname = 'MCP_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 ['\phpbbstudio\aps\migrations\install_acp_module']; } /** * Add the Advanced Points System MCP module to the database. * * @return array Array of module data * @access public */ public function update_data() { return [ ['module.add', [ 'mcp', 0, 'MCP_APS_POINTS' ]], ['module.add', [ 'mcp', 'MCP_APS_POINTS', [ 'module_basename' => '\phpbbstudio\aps\mcp\main_module', 'modes' => ['front', 'change', 'logs'], ], ]], ]; } }