first commit
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Ganti sesuai kebutuhan Anda
|
||||
migratePath := "internal/infrastructure/database/sql"
|
||||
dbURL := "postgres://postgres:rss@j@y@[email protected]:5432/health?sslmode=disable"
|
||||
|
||||
args := append([]string{"-path", migratePath, "-database", dbURL}, os.Args[1:]...)
|
||||
cmd := exec.Command("migrate", args...)
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
||||
if err := cmd.Run(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user