db->sql_query($sql); $module_auth = $this->db->sql_fetchfield('module_auth'); $this->db->sql_freeresult($result); return ($module_auth == 'cfg_allow_avatar'); } static public function depends_on() { return array('phpbb_db_migration_data_30x_3_0_11'); } public function update_schema() { return array( 'change_columns' => array( $this->table_prefix . 'users' => array( 'user_avatar_type' => array('VCHAR:255', ''), ), $this->table_prefix . 'groups' => array( 'group_avatar_type' => array('VCHAR:255', ''), ), ), ); } public function revert_schema() { return array( 'change_columns' => array( $this->table_prefix . 'users' => array( 'user_avatar_type' => array('TINT:2', ''), ), $this->table_prefix . 'groups' => array( 'group_avatar_type' => array('TINT:2', ''), ), ), ); } public function update_data() { return array( array('config.add', array('allow_avatar_gravatar', 0)), ); } }