Files
simrsx-be/cmd/satusehat-migration/atlas.hcl
T
2025-09-11 13:02:57 +07:00

22 lines
431 B
HCL

data "external_schema" "gorm" {
program = [
"go",
"run",
"-mod=mod",
".",
]
}
env "gorm" {
src = data.external_schema.gorm.url
dev = "postgres://moko:password@localhost:5432/satusehat_diff?sslmode=disable"
migration {
dir = "file://migrations"
}
url = "postgres://moko:password@localhost:5432/satusehat_main?sslmode=disable"
format {
migrate {
diff = "{{ sql . \" \" }}"
}
}
}