handle ss migration, tested

This commit is contained in:
dpurbosakti
2025-09-11 13:02:57 +07:00
parent 2ed11fe5e5
commit 7ab845d79d
28 changed files with 388 additions and 176 deletions

No files matched your search

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