nocodb-migrate v0.0.2 hardens the tool against real-world NocoDB backends and lands a full test + CI safety net.
Fixed
- Creating the
Migrationstable now succeeds on external SQL backends (MySQL, PostgreSQL). TheDirection/StatusSingleSelect fields are added via separate field-create calls so NocoDB materializes a validenum(...)column instead of failing withER_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
Migrationsstorage, and the executor, driven by an in-process mock NocoDB — no live instance required. - Integration tests that run the real
up/downcommand path against a dockerized NocoDB (testcontainers-go), parameterized across SQLite, MySQL, and PostgreSQL, gated behind theintegrationbuild 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 apre-commitconfiguration.
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