You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghostfolio/prisma/baseline.sh

9 lines
288 B

#!/bin/sh
# List all migration scripts based on the directory name and mark the migration as "applied"
for directory in ./prisma/migrations/*/; do
migration=$(echo "$directory" | sed 's/.\/prisma\/migrations\///' | sed 's/\///')
yarn prisma migrate resolve --applied $migration
done