dev: hotfix, config example adjustments

This commit is contained in:
2025-12-17 22:03:48 +07:00
parent ae5f1b13a1
commit 88590db60d
9 changed files with 255 additions and 115 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 = "postgresql://user:password@localhost:5439/dev?sslmode=disable" // dsn db to check the diff
migration {
dir = "file://migrations"
}
url = "postgresql://user:password@localhost:5439/simrs-sync?sslmode=disable" // dsn db to apply
format {
migrate {
diff = "{{ sql . \" \" }}"
}
}
}