table_prefix . "modules WHERE module_class = 'acp' AND module_langname = 'ACP_ASS_INVENTORY'"; $result = $this->db->sql_query($sql); $module_id = (bool) $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\ass\migrations\install_acp_module']; } /** * Update the Advanced Shop System ACP module to the database. * * @return array Array of module data * @access public */ public function update_data() { return [ ['module.add', [ 'acp', 'ACP_ASS_SYSTEM', [ 'module_basename' => '\phpbbstudio\ass\acp\main_module', 'modes' => ['inventory'], ], ]], ]; } }