activity.upgrade ================ .. py:module:: activity.upgrade .. autoapi-nested-parse:: Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. Functions --------- .. autoapisummary:: activity.upgrade.rebuild_bookings activity.upgrade.add_period_id_to_bookings activity.upgrade.change_booking_states activity.upgrade.add_confirmed_flag_to_period activity.upgrade.add_data_column_to_period activity.upgrade.add_attendee_count_column_to_occasion activity.upgrade.add_finalized_flag_to_period activity.upgrade.add_payment_model_columns activity.upgrade.add_cancelled_flag_to_occasion activity.upgrade.add_code_field_to_invoice_items activity.upgrade.add_source_field_to_invoice_items activity.upgrade.add_gender_notes_fields_to_attendees activity.upgrade.support_multiple_dates_per_occasion activity.upgrade.adds_minutes_between_to_period activity.upgrade.adds_exclude_from_overlap_check_to_period activity.upgrade.adds_deadlines_to_period activity.upgrade.adds_limit_to_attendee activity.upgrade.introduce_location_meeting_point activity.upgrade.add_active_days activity.upgrade.add_active_days_index activity.upgrade.remove_denied_activity_state activity.upgrade.add_weekdays activity.upgrade.add_weekdays_index activity.upgrade.extract_thumbnails activity.upgrade.retroactively_create_publication_requests activity.upgrade.add_archived_flag_to_period activity.upgrade.add_municipality_column_to_activites activity.upgrade.add_family_to_invoice_items activity.upgrade.add_subscription activity.upgrade.add_alignment activity.upgrade.update_duration_categories activity.upgrade.rename_occasion_durations_to_the_singular activity.upgrade.add_pay_organiser_directly_column activity.upgrade.remove_activity_aggregates activity.upgrade.add_invoices activity.upgrade.add_invoice_references activity.upgrade.add_invoice_reference_bucket activity.upgrade.adds_cancellation_deadlines_to_period activity.upgrade.make_group_code_nullable activity.upgrade.adds_exempt_from_booking_limit_to_occasion activity.upgrade.adds_score_to_bookings activity.upgrade.drop_occasion_active_column activity.upgrade.add_age_barrier_type activity.upgrade.add_booking_phase_dates activity.upgrade.add_confirmable_and_finalizable_columns activity.upgrade.improve_period_dates_constraint activity.upgrade.drop_deadline_date activity.upgrade.book_finalized activity.upgrade.add_occasion_booking_cost activity.upgrade.add_seeking_volunteers_column activity.upgrade.add_occasion_need_public_toggle activity.upgrade.add_invoice_item_payment_date activity.upgrade.make_activity_polymorphic_type_non_nullable activity.upgrade.cleanup_activity_aggregates activity.upgrade.add__differing_attendee_address activity.upgrade.add_invoice_item_organizer activity.upgrade.add_attendee_id_to_invoice_item activity.upgrade.fill_in_attendee_ids_1 Module Contents --------------- .. py:function:: rebuild_bookings(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_period_id_to_bookings(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: change_booking_states(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_confirmed_flag_to_period(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_data_column_to_period(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_attendee_count_column_to_occasion(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_finalized_flag_to_period(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_payment_model_columns(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_cancelled_flag_to_occasion(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_code_field_to_invoice_items(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_source_field_to_invoice_items(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_gender_notes_fields_to_attendees(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: support_multiple_dates_per_occasion(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: adds_minutes_between_to_period(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: adds_exclude_from_overlap_check_to_period(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: adds_deadlines_to_period(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: adds_limit_to_attendee(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: introduce_location_meeting_point(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_active_days(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_active_days_index(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: remove_denied_activity_state(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_weekdays(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_weekdays_index(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: extract_thumbnails(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: retroactively_create_publication_requests(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_archived_flag_to_period(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_municipality_column_to_activites(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_family_to_invoice_items(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_subscription(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_alignment(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: update_duration_categories(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: rename_occasion_durations_to_the_singular(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_pay_organiser_directly_column(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: remove_activity_aggregates(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_invoices(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_invoice_references(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_invoice_reference_bucket(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: adds_cancellation_deadlines_to_period(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: make_group_code_nullable(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: adds_exempt_from_booking_limit_to_occasion(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: adds_score_to_bookings(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: drop_occasion_active_column(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_age_barrier_type(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_booking_phase_dates(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_confirmable_and_finalizable_columns(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: improve_period_dates_constraint(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: drop_deadline_date(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: book_finalized(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_occasion_booking_cost(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_seeking_volunteers_column(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_occasion_need_public_toggle(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_invoice_item_payment_date(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: make_activity_polymorphic_type_non_nullable(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: cleanup_activity_aggregates(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add__differing_attendee_address(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_invoice_item_organizer(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: add_attendee_id_to_invoice_item(context: onegov.core.upgrade.UpgradeContext) -> None .. py:function:: fill_in_attendee_ids_1(context: onegov.core.upgrade.UpgradeContext) -> None