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
+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 = "" // dsn db to check the diff
migration {
dir = "file://migrations"
}
url = "" // dsn db to apply
format {
migrate {
diff = "{{ sql . \" \" }}"
}
}
}