baseline prisma bdd at first setup (#1124)
* Baseline database (migrations) in setup Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>pull/1127/head
parent
51431a7fb2
commit
7ec9170c0d
@ -0,0 +1,8 @@
|
||||
#!/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
|
Loading…
Reference in new issue