From ab8a674988e00c50f80875c8d7d787404d64b3eb Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Thu, 21 Mar 2024 22:42:03 -0700 Subject: [PATCH] helper files --- .gitignore | 1 + Justfile | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 Justfile diff --git a/.gitignore b/.gitignore index d1ce888..ddc0925 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ *.so *.dylib go-cook +*.db # Test binary, built with `go test -c` *.test diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..264ab7f --- /dev/null +++ b/Justfile @@ -0,0 +1,5 @@ +migrate-up: + GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./gocook.db goose -dir ./api/migrations up + +migrate-down: + GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./gocook.db goose -dir ./api/migrations down \ No newline at end of file