Public repository: timo / mitch

Reader

A migration stitcher (therefore mitch) for PostgreSQL, SQLite, MariaDB, and others

mitch / docs / adr / runner / bookkeeping-in-mitch-schema-where-supported.md · 521 bytes · at 76a2c3d332a1 · raw


status: accepted

Bookkeeping tables live in a mitch schema where the engine supports schemas

On engines with standard schema support (PostgreSQL, SQL Server, DB2) mitch keeps its tables in a schema named mitch. On SQLite and Oracle, whose notion of schema is attached databases or users, the tables are instead prefixed with mitch_ in the default schema. A schema keeps mitch's tables out of the user's namespace; the prefix fallback keeps the same code path working on every engine SQLAlchemy supports.