Vergleich install/resources/upgrade20.php - 1.6.4 - 1.6.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 44Zeile 44
		$db->query("SELECT setval('{$mybb->config['database']['table_prefix']}usergroups_gid_seq', (SELECT max(gid) FROM {$mybb->config['database']['table_prefix']}usergroups));");
}


		$db->query("SELECT setval('{$mybb->config['database']['table_prefix']}usergroups_gid_seq', (SELECT max(gid) FROM {$mybb->config['database']['table_prefix']}usergroups));");
}


	if($db->field_exists('custom_profile_fields', 'adminviews'))
{
$db->drop_column('adminviews', 'custom_profile_fields');
}
if(!$db->field_exists('custom_profile_fields', 'adminviews'))
{
$db->add_column("adminviews", "custom_profile_fields", "text NOT NULL AFTER conditions");
}

	$db->add_column("adminviews", "custom_profile_fields", "text NOT NULL AFTER conditions");









$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("20_done");


$output->print_contents("<p>Click next to continue with the upgrade process.</p>");
$output->print_footer("20_done");