Normandy.Behaviours.SessionStore.Postgres.MigrationAddResumePolicy (normandy v2.2.0)

View Source

Adds the queryable resume_policy column to normandy_sessions (Phase 7d resume reaper). Lets SessionStore.Postgres.list_resumable/1 filter eager sessions without decoding the opaque config_template blob. Call from a host migration alongside the other Postgres.Migration* modules.

Summary

Functions

Removes the resume_policy column.

Adds the nullable resume_policy column (text) to normandy_sessions, which save_config_template/3 fills from the template's resume_policy. Run it after Migration.

Functions

down()

Removes the resume_policy column.

up()

Adds the nullable resume_policy column (text) to normandy_sessions, which save_config_template/3 fills from the template's resume_policy. Run it after Migration.