$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");
|