github ariga/atlas v0.3.3

latest releases: v0.28.1, v0.28.0, v0.27.0...
2 years ago

Atlas v0.3.3 is a patch release that includes many small improvements to both the Atlas CLI and the Management UI.

Installation

MacOS

curl -LO https://release.ariga.io/atlas/atlas-darwin-amd64-v0.3.3
chmod +x ./atlas-darwin-amd64-v0.3.3
sudo mv ./atlas-darwin-amd64-v0.3.3 /usr/local/bin/atlas
sudo chown root: /usr/local/bin/atlas

Linux

curl -LO https://release.ariga.io/atlas/atlas-linux-amd64-v0.3.3
sudo install -o root -g root -m 0755 ./atlas-linux-amd64-v0.3.3 /usr/local/bin/atlas

Windows

Download

New Features

Management UI

image

  • A redesigned migration flow (see screenshot above) by @elad-n + @yonidavidson
  • Ability to abort a migration (similar to the CLI) by @elad-n
  • Fix ERD edge labels bug by @hedwigz

DDL

Added support for descending (DESC) indexes. Previously users could describe indexes on the columns:

index "idx_name" {
    columns = [
      table.users.column.name
    ]
    unique = true
}

With this version, we've added a more flexible syntax that can express more use-cases for indexes. For example:

index "idx_name" {
    on {
        column = table.users.column.rank
    }
    on {
        column = table.users.column.score
        desc = true
    }
    unique = true
}

CLI

Added an auto-approve flag to the schema apply command, thanks @ericyd for the contribution!

And much more:

  • sql/postgres: support marshal time types precision in HCL by @masseelch in #481
  • schema/schemaspec: add support for omitempty by @a8m in #521
  • internal/integration/testdata/mysql: add time precision test by @masseelch in #522
  • internal/integration/testdata/mysql: add tests for time precision def… by @masseelch in #525
  • doc/md: contribution guidelines by @rotemtam in #528
  • .github/workflows: verify go generate clean by @rotemtam in #529
  • Fix/cli tests by @masseelch in #524
  • cmd/action: add unit tests for diff command by @rotemtam in #530
  • internal/integration: initial testscript testing for pg by @a8m in #531
  • internal/integration: composite-index test case by @a8m in #532
  • Add "auto approve" flag to "schema apply" command by @ericyd in #526
  • internal/integration: initial testscript testing for sqlite by @a8m in #533
  • internal/integration: composite-index test case for sqlite by @a8m in #534
  • doc/md: intro doc to go api by @rotemtam in #536
  • doc/md: document index-part option by @a8m in #538
  • doc/md: documenting inspect for go api by @rotemtam in #537
  • internal/integration/testdata/postgres: add tests for time precision … by @masseelch in #535
  • sql: drop the InspectTable option by @a8m in #540
  • doc/md: guidelines for contributing documentation by @rotemtam in #542
  • fix/typos by @int-2147483647 in #544
  • doc/website: fix favicon and upgrade docusaurus by @rotemtam in #546

New Contributors

Full Changelog: v0.3.2...v0.3.3

Don't miss a new atlas release

NewReleases is sending notifications on new releases.