Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Tables ¶ added in v0.5.0
Tables lists every base table visible in the current schema, framework and product tables alike, sorted (P1-1, orkome pack rollout): migrations know the DDL surface, so test-isolation code (TRUNCATE lists, allowlist guards) should derive its table list from here instead of hand-maintaining a second inventory that silently rots every time a migration adds a table. The pgmigrate bookkeeping table (schema_migrations) is excluded.
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func (*Migrator) Down ¶
Down rolls back the N most recently applied migrations (limit > 0), or the entire applied history for a negative limit. It is NOT a goose-style "down-to-version": pass a COUNT, never a target version (orkome field report — a round-trip test written with the goose mental model was wrong from birth). limit == 0 is rejected: the old silent reading of 0 was "roll back everything", which is a real-accident generator.