Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
prisma/baseline.sh
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
# List all migration scripts based on folder name, and mark it as "applied" |
|
|
# List all migration scripts based on folder name, and mark it as "applied" |
|
|
|
|
|
|
|
|
for d in ./prisma/migrations/*/; do |
|
|
for directory in ./prisma/migrations/*/; do |
|
|
mig=$(echo "$d" | sed 's/.\/prisma\/migrations\///' | sed 's/\///') |
|
|
migration=$(echo "$directory" | sed 's/.\/prisma\/migrations\///' | sed 's/\///') |
|
|
yarn prisma migrate resolve --applied $mig |
|
|
yarn prisma migrate resolve --applied $migration |
|
|
done |
|
|
done |
|
|