* Baseline database (migrations) in setup Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
9 lines
288 B
Bash
9 lines
288 B
Bash
#!/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
|