set infra

This commit is contained in:
vanilia
2025-11-13 09:57:10 +07:00
parent 94ce6bd5ee
commit ebc2ca5659
24 changed files with 843 additions and 105 deletions
@@ -0,0 +1,22 @@
data "external_schema" "gorm" {
program = [
"go",
"run",
"-mod=mod",
".",
]
}
env "gorm" {
src = data.external_schema.gorm.url
dev = "" // dsn db to check the diff
migration {
dir = "file://migrations"
}
url = "" // dsn db to apply
format {
migrate {
diff = "{{ sql . \" \" }}"
}
}
}