pub async fn ensure_event_outbox_table<'e, E>(
executor: E,
) -> Result<(), CratestackError>Expand description
Bootstraps cratestack_event_outbox if it doesn’t already exist. A table
an earlier version created lacks payload_before; that is added outside
the write transaction, once per runtime (outbox_upgrade.rs).
pub (rather than pub(crate)) since cratestack#507 (“option 3”):
cratestack-studio’s [target.db] write path calls this directly to
route Studio writes through the same outbox the generated server
uses, rather than duplicating the table DDL in a second crate where
it could drift out of sync with this one.