Skip to content

v0.0.2 — MySQL/Postgres fix + test & CI

Latest

Choose a tag to compare

@memclutter memclutter released this 27 Jun 19:16
v0.0.2
2d56cd3

nocodb-migrate v0.0.2 hardens the tool against real-world NocoDB backends and lands a full test + CI safety net.

Fixed

  • Creating the Migrations table now succeeds on external SQL backends (MySQL, PostgreSQL). The Direction/Status SingleSelect fields are added via separate field-create calls so NocoDB materializes a valid enum(...) column instead of failing with ER_PARSE_ERROR ("There was a syntax error in your SQL query"). The underlying NocoDB bulk-create limitation is tracked upstream in nocodb/nocodb#14164. (#1)

Added

  • Unit test suite over the NocoDB API client, the Migrations storage, and the executor, driven by an in-process mock NocoDB — no live instance required.
  • Integration tests that run the real up/down command path against a dockerized NocoDB (testcontainers-go), parameterized across SQLite, MySQL, and PostgreSQL, gated behind the integration build tag and run in a separate CI job.
  • GitHub Actions CI (lint-unit: gofmt check + golangci-lint + unit tests) with a committed .golangci.yml, and a pre-commit configuration.

Changed

  • Relicensed from GPL-3.0 to the MIT License.
  • Reworked README.md: status badges, quick-start, operations table, tightened reference sections.

Full changelog: v0.0.1...v0.0.2