Add embedded SQL and provider-local Go migrations with slog logging and Postgres session locking, returning Goose's Provider directly. Cover timestamp and sequential versions, failure recovery, and concurrent startup with SQLite and Postgres tests. Reuse page's Postgres CI service. Document authoring conventions and the Go template compatibility gate. Closes #7 Refs #9
7 lines
169 B
SQL
7 lines
169 B
SQL
-- +goose Up
|
|
CREATE TABLE migration_events (version BIGINT PRIMARY KEY);
|
|
INSERT INTO migration_events (version) VALUES (7);
|
|
|
|
-- +goose Down
|
|
DROP TABLE migration_events;
|