tsapi-seriesdb-shared-sql/sql/10_schema_version.sql
peter eb0f93e032 Schema 1.3.0: meta.find_series_registry_mismatches()
An occasional consistency check (not for connect time) comparing
meta.series with the registered series schemas: non-series tables, views,
sequences and functions inside a series schema; registered series whose
table is missing; series tables without a timestamp column or its BRIN
index. Report only; user schemas are never examined. find_schema_problems()
fingerprints its body like every other procedure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 11:48:26 +01:00

8 lines
506 B
SQL

-- ============================================================================
-- Schema version row -- runs last, so a database that has it is complete.
-- ============================================================================
-- Keep this string equal to ../VERSION. Clients compare it with the version
-- they were built for (Python: DB_SCHEMA_VERSION in tsapi_pgdb/_version.py).
INSERT INTO meta.schema_version (version, description)
VALUES ('1.3.0', 'meta.find_series_registry_mismatches()');