Skip to main content

Module schema

Module schema 

Source
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_deprecated has 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