Skip to content

v0.0.1 — first release: NocoDB migration CLI

Choose a tag to compare

@memclutter memclutter released this 27 Jun 10:25

First release of nocodb-migrate — a command-line migration tool for NocoDB,
driving schema and data changes against a base through its Meta API v3.

Features

  • create <name> scaffolds a timestamped *.up.json / *.down.json migration
    file pair in the migrations directory.
  • up [count] applies pending migrations in ascending timestamp order; down [count] rolls them back newest-first; info reports the current version and
    recorded history.
  • Eight migration operation types: create_table, alter_table, drop_table,
    create_field, alter_field, drop_field, insert_row, delete_row, with
    up-front JSON validation of operations and column types.
  • Applied migrations are tracked in a Migrations table the tool creates inside
    the target base — no external state store.
  • Environment-based configuration (NOCODB_URL, NOCODB_API_TOKEN,
    NOCODB_BASE_ID, optional NOCODB_MIGRATIONS_DIR), with .env support.

Built in Go (cobra CLI, go-resty client). This is a v0.x release: the API and
migration format may change in any release before v1.0.0.