···77 go run server/*.go
8899build:
1010+ just genprisma
1011 go mod tidy
1112 go build -v -ldflags="-X main.Version={{current_version}}" -o bin/server server/*.go
1213···16171718updateschema:
1819 curl -fsSL https://git.inpt.fr/churros/churros/-/raw/main/packages/db/prisma/schema.prisma -o schema.prisma
2020+ sed -i '/^generator .* {/,/^}/d' schema.prisma
2121+ sed -i '1i\
2222+ generator goprisma {\n\
2323+ provider = "go run github.com/steebchen/prisma-client-go"\n\
2424+ previewFeatures = ["fullTextSearch", "postgresqlExtensions"]\n\
2525+ }\
2626+ ' schema.prisma
2727+ go run github.com/steebchen/prisma-client-go format
2828+19292030genprisma:
2131 go get github.com/steebchen/prisma-client-go