/**
 * Upgrade routine for 3.3.0
 *
 * @since 3.3.0
 * @return void
 */
function wpas_upgrade_330()
{
    // Add default values for e-mail template when client closes own ticket
    wpas_update_option('enable_closed_client', get_settings_defaults('enable_closed_client'));
    wpas_update_option('subject_closed_client', get_settings_defaults('subject_closed_client'));
    wpas_update_option('content_closed_client', get_settings_defaults('content_closed_client'));
}
/**
 * Upgrade function for version 3.2.0
 *
 * @since 3.2.0
 * @return void
 */
function wpas_upgrade_320()
{
    $registrations = (bool) wpas_get_option('allow_registrations', true);
    if (true === $registrations) {
        wpas_update_option('allow_registrations', 'allow');
    } else {
        wpas_update_option('allow_registrations', 'disallow');
    }
}