ad_library {
    
    APM callback procs for new-portal.

    @author Don Baccus (dhogaza@pacifier.com)
}

namespace eval new-portal {}

ad_proc -private new-portal::after_upgrade {
    {-from_version_name:required}
    {-to_version_name:required}
} {
    After upgrade callback for new-portal.
} {
    apm_upgrade_logic \
        -from_version_name $from_version_name \
        -to_version_name $to_version_name \
        -spec {
            2.3.0d1 2.3.0d2 {

                # DRB: Those fuckers at Open Force (and you can quote me on this)
                # defined the type "portal_element_theme" with table and package set
                # to "portal_themes" and "portal_theme" respectively.  These don't exist,
                # which breaks package_instantiate_object.

                db_dml update_type {}

            }
    }
}
