This commit is contained in:
Davidson Gomes 2024-06-09 21:23:09 -03:00
parent 11a52c3f43
commit 7b2f8fa5e1
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,10 @@ fi
if [[ "$DATABASE_PROVIDER" == "postgresql" || "$DATABASE_PROVIDER" == "mysql" ]]; then
export DATABASE_URL
./node_modules/.bin/prisma migrate dev --name init --schema ./prisma/$DATABASE_PROVIDER-schema.prisma
# ./node_modules/.bin/prisma migrate dev --name init --schema ./prisma/$DATABASE_PROVIDER-schema.prisma
# ./node_modules/.bin/prisma migrate deploy --schema=prisma/$DATABASE_PROVIDER-schema.prisma
# ./node_modules/.bin/prisma generate --schema=prisma/$DATABASE_PROVIDER-schema.prisma
npx prisma migrate deploy --schema ./prisma/$DATABASE_PROVIDER-schema.prisma
else
echo "Error: Database provider $DATABASE_PROVIDER invalid."
exit 1

View File

@ -9,7 +9,7 @@ RUN npm i -g npm@latest
FROM base AS builder
LABEL version="1.8.0" description="Api to control whatsapp features through http requests."
LABEL version="2.0.0" description="Api to control whatsapp features through http requests."
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
LABEL contact="contato@agenciadgcode.com"