mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Baseline database (migrations) in setup Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>pull/1127/head
Le_Bleu
2 years ago
committed by
GitHub
2 changed files with 10 additions and 1 deletions
@ -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