Files
vctp2/db/migrations_postgres/20250115094500_snapshot_registry.sql
Nathan Coad 7400e08c54
All checks were successful
continuous-integration/drone/push Build is passing
updates
2026-01-14 09:28:30 +11:00

15 lines
339 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE IF NOT EXISTS snapshot_registry (
id BIGSERIAL PRIMARY KEY,
snapshot_type TEXT NOT NULL,
table_name TEXT NOT NULL UNIQUE,
snapshot_time BIGINT NOT NULL
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE snapshot_registry;
-- +goose StatementEnd