add atlas.hcl [skip ci]

This commit is contained in:
surtur 2023-08-14 14:56:46 +02:00
parent 7c8650019e
commit e859f4c7e0
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

22
atlas.hcl Normal file
View File

@ -0,0 +1,22 @@
// Define an environment named "local"
env "local" {
// Declare where the schema definition resides.
// Also supported: ["file://multi.hcl", "file://schema.hcl"].
src = "file://ent/migrate/migrations"
// Define the URL of the database which is managed
// in this environment.
url = "postgres://postgres:postgres@localhost:5432/postgres?search_path=public&sslmode=disable"
// Define the URL of the Dev Database for this environment
// See: https://atlasgo.io/concepts/dev-database
dev = "docker://postgres/15.3-alpine3.18/postgres?search_path=public"
migration {
// URL where the migration directory resides.
dir = "file://ent/migrate/migrations"
// An optional format of the migration directory:
// atlas (default) | flyway | liquibase | goose | golang-migrate | dbmate
format = "atlas"
}
}