SQLStreams

the messaging platform that is just Postgres

You last visited on 9999-99-99 Show what's new since then
[SOLVED]

schema version is older than this build requires [SQL0022]

Edit this page
code SQL0022 · recovery permanent — an unchanged retry cannot succeed; retry machinery stops immediately
the log line · Report this thread
SQL0022 Permanent error

As it arrives in your log or error chain — example values stand where yours will:

schema version is older than this build requires: schema "sqlstreams", version 2, build_version 3, owner_kind "stream" -- migrate the stream schema up from 2 to 3 [SQL0022]
ACCEPTED ANSWER Posted: 2026-09-09
brandon Site Admin brandon profile Posts: 677

migrate the {owner_kind} schema up from {version} to {build_version}

brandon Site Admin brandon profile Posts: 677

Helpful info.

  1. the steps this database recorded, newest first

    SELECT
    	id,
    	version,
    	min_compatible_version,
    	status,
    	created_at
    FROM {schema}.migration_log
    ORDER BY id DESC
    LIMIT 20;
Nothing pasted yet — the queries above show their blanks.

Looking for a different code? Search every thread.