Expand description
The goals, mandates, tasks, work and notification tables.
The statements run in the order they always have. A database gives no way
to tell which of them it has seen, so they stay idempotent and keep
running on every start. Called in two steps because the host’s own tables
sit between them. goals.source_episode_id refers to long-term memory’s
episodes table, so a host without that memory creates a table of that
name first; aidaemon_events::schema::migrate_events runs first as well.
Constants§
- LEGACY_
GOALS_ IMPORTED_ VERSION - The version record that says
_goals_legacy_deprecatedhas been imported. - WORK_
BACKFILLS_ DONE_ VERSION - The version record that says the one-time backfills below have run with this release’s code: mandate session links, task dependency rows and the legacy goal runs. Recorded by the host after the steps ran; before it they run on every start, as they always did.
Functions§
- migrate_
work_ tables - The goal, mandate, task and notification tables, up to the host’s own.
- migrate_
work_ tail - Repairs and tables that have always run after the host’s own.
- table_
exists_ in_ pool