From a12a78f51c2d16683f07563c77eb1453ab847178 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 18 Jan 2023 11:48:03 +0700 Subject: [PATCH] fix db rebuild new table layout --- helper_scripts/db_sync.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/helper_scripts/db_sync.sh b/helper_scripts/db_sync.sh index cf911a9..9398637 100755 --- a/helper_scripts/db_sync.sh +++ b/helper_scripts/db_sync.sh @@ -24,6 +24,7 @@ printf "\n -> replace\n" ssh $local_host "docker exec -i postgres psql -U archivist -c 'DROP TABLE IF EXISTS ta_docker_stats;'" ssh $local_host "docker exec -i postgres psql -U archivist -c 'DROP TABLE IF EXISTS ta_release;'" ssh $local_host "docker exec -i postgres psql -U archivist -c 'DROP TABLE IF EXISTS ta_roadmap;'" +ssh $local_host "docker exec -i postgres psql -U archivist -c 'DROP TABLE IF EXISTS ta_version_stats;'" ssh $local_host 'docker exec -i postgres psql -U archivist -d archivist < backup/backup' ssh $local_host "trash backup/backup" printf "\n -> done\n"