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