mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-24 05:55:13 +03:00
Docs/testing strategy (#465)
* docs(tests): testing strategies * fix(migration): migration id to name
This commit is contained in:
parent
6c6fa01411
commit
17d4d49cd9
@ -35,7 +35,7 @@ else
|
||||
# Running migrations
|
||||
|
||||
# Get the last migration that was executed
|
||||
LAST_MIGRATION=$(PGPASSWORD=${DB_PASSWORD} psql -h "${DB_HOST}" -p "${DB_PORT}" -d "${DB_NAME}" -U "${DB_USER}" -tAc "SELECT id FROM migrations ORDER BY executed_at DESC LIMIT 1;")
|
||||
LAST_MIGRATION=$(PGPASSWORD=${DB_PASSWORD} psql -h "${DB_HOST}" -p "${DB_PORT}" -d "${DB_NAME}" -U "${DB_USER}" -tAc "SELECT name FROM migrations ORDER BY executed_at DESC LIMIT 1;")
|
||||
|
||||
echo "Last migration executed: $LAST_MIGRATION"
|
||||
# Iterate through the migration files
|
||||
|
Loading…
Reference in New Issue
Block a user