Skip to content

Commit

Permalink
lava-master: Generate migrations files
Browse files Browse the repository at this point in the history
We should generate migrations files before applying them

Signed-off-by: Corentin LABBE <[email protected]>
  • Loading branch information
montjoie committed Jan 24, 2023
1 parent 35852ec commit a782c74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lava-master/entrypoint.d/01_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ else
sed -i "s,PASSWORD:.*,PASSWORD: '$(cat /root/pg_lava_password)'," /etc/lava-server/settings.d/00-database.yaml || exit $?
fi

cd /root/
lava-server manage makemigrations || exit $?

# verify that the backup was not already applied in case of persistent_db
if [ ! -e "/var/lib/postgresql/lava-docker.backup_done" ];then
if [ -e /root/backup/db_lavaserver.gz ];then
Expand Down

0 comments on commit a782c74

Please sign in to comment.