mirror of
https://github.com/StanGirard/quivr.git
synced 2024-10-26 14:00:37 +03:00
fix(migration): migration id to name
This commit is contained in:
parent
a1a9793556
commit
ba0fac51c6
@ -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