fix db rebuild new table layout

This commit is contained in:
simon 2023-01-18 11:48:03 +07:00
parent eef3581381
commit a12a78f51c
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 0 deletions

View File

@ -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"