user.upgrade

Contains upgrade tasks that are executed when the application is being upgraded on the server. See onegov.core.upgrade.upgrade_task.

Functions

add_second_factor_column(→ None)

add_active_column(→ None)

add_realname_column(→ None)

change_ownership_by_name(→ None)

change_ownership_by_id(→ None)

force_lowercase_usernames(→ None)

add_signup_token_column(→ None)

add_group_id_column(→ None)

add_type_column(→ None)

add_authentication_provider_column(→ None)

drop_authentication_provider_column(→ None)

add_source_column(→ None)

add_source_id_column(→ None)

make_user_models_polymorphic_type_non_nullable(→ None)

add_scope_column(→ None)

Module Contents

user.upgrade.add_second_factor_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_active_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_realname_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.change_ownership_by_name(context: onegov.core.upgrade.UpgradeContext, old_username: str, new_username: str) None[source]
user.upgrade.change_ownership_by_id(context: onegov.core.upgrade.UpgradeContext, old_userid: uuid.UUID, new_userid: uuid.UUID) None[source]
user.upgrade.force_lowercase_usernames(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_signup_token_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_group_id_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_type_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_authentication_provider_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.drop_authentication_provider_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_source_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_source_id_column(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.make_user_models_polymorphic_type_non_nullable(context: onegov.core.upgrade.UpgradeContext) None[source]
user.upgrade.add_scope_column(context: onegov.core.upgrade.UpgradeContext) None[source]