diff --git a/internal/storage/postgres/migrations/20231230174418_schema_version_index.sql b/internal/storage/postgres/migrations/20231230174418_schema_version_index.sql new file mode 100644 index 000000000..5c4477a0e --- /dev/null +++ b/internal/storage/postgres/migrations/20231230174418_schema_version_index.sql @@ -0,0 +1,10 @@ +-- +goose NO TRANSACTION +-- +goose Up +-- +goose StatementBegin +CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_schema_version ON schema_definitions (version); +-- +goose StatementEnd + +-- +goose Down +-- +goose StatementBegin +DROP INDEX CONCURRENTLY IF EXISTS idx_schema_version; +-- +goose StatementEnd