Skip to content

Releases: ariga/atlas

v0.1.1

28 Nov 19:09
d0914c8
Compare
Choose a tag to compare

Version v0.1.1 includes bug fixes in column nullability inspection and support for ArrayType and UserDefinedType in PostgresSQL.

The latest version instructions can be found here

Apple Intel

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

Linux

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

Windows

curl -LO https://release.ariga.io/atlas/atlas-windows-amd64-v0.1.1.exe

Apple Silicon

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

v0.1.0

25 Nov 16:53
d2ef939
Compare
Choose a tag to compare

Our first release of Atlas 🎊

This release contains the Atlas CLI with the following commands:

atlas schema inspect -d "mysql://root:pass@tcp(localhost:3306)/example" > atlas.hcl

Currently, Atlas supports only HCL syntax

# cat atlas.hcl
table "users" {
  schema = "example"
  column "id" {
    null = false
    type = "int"
  }
  column "name" {
    null = false
    type = "string"
    size = 255
  }
  column "manager_id" {
    null = false
    type = "int"
  }
  primary_key {
    columns = [table.users.column.id, ]
  }
  foreign_key "manager_fk" {
    columns     = [table.users.column.manager_id, ]
    ref_columns = [table.users.column.id, ]
    on_update   = "NO ACTION"
    on_delete   = "CASCADE"
  }
  index "idx_name" {
    unique  = true
    columns = [table.users.column.name, ]
  }
  index "manager_fk" {
    unique  = false
    columns = [table.users.column.manager_id, ]
  }
}
schema "example" {
}

For applying a schema to a database.

atlas schema apply -d "mysql://root:pass@tcp(localhost:3306)/example" -f atlas.hcl

Supported Databases:

  • MySQL.
  • PostgresSQL