Browse Source

Update baseline.sh

pull/1124/head
Thomas Kaul 3 years ago
committed by GitHub
parent
commit
78544dbf02
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      prisma/baseline.sh

4
prisma/baseline.sh

@ -1,8 +1,8 @@
#!/bin/sh
#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
mig=$(echo "$d" | sed 's/.\/prisma\/migrations\///' | sed 's/\///')
yarn prisma migrate resolve --applied $mig
done
done

Loading…
Cancel
Save