From 8c4ce18c7bbda6ac8ef3d535cac4030c632f8173 Mon Sep 17 00:00:00 2001 From: tangoyankee Date: Fri, 21 Jun 2024 15:34:30 -0400 Subject: [PATCH] create with clean and if exists --- bash/update_api_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/update_api_db.sh b/bash/update_api_db.sh index 6df22dc..bd8f0b2 100755 --- a/bash/update_api_db.sh +++ b/bash/update_api_db.sh @@ -16,5 +16,5 @@ set_envars mkdir -p ${DATA_DIRECTORY} && ( cd ${DATA_DIRECTORY} # Replace tables in Zoning API DB with updated data from db.dump - pg_restore --no-owner --clean -d ${BUILD_ZONING_API_ENGINE_URI} db.dump + pg_restore --no-owner --create --clean --if-exists -d ${BUILD_ZONING_API_ENGINE_URI} db.dump ) \ No newline at end of file