Skip to content

Commit

Permalink
avoid ALTER OWNER statements from dump file
Browse files Browse the repository at this point in the history
  • Loading branch information
damonmcc committed Mar 29, 2024
1 parent 9c0b420 commit bd8f265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash/export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source $ROOT_DIR/bash/utils/set_environment_variables.sh
set_envars

# Dump Zoning API DB tables to db.dump
pg_dump -Fc -t tax_lot -t borough -t land_use -t zoning_district -t zoning_district_class -t zoning_district_zoning_district_class ${BUILD_ENGINE_URI} > db.dump
pg_dump -Fc --no-owner -t tax_lot -t borough -t land_use -t zoning_district -t zoning_district_class -t zoning_district_zoning_district_class ${BUILD_ENGINE_URI} > db.dump

# Restore Zoning API DB with updated data from db.dump
pg_restore --clean --if-exists -d ${BUILD_ZONING_API_ENGINE_URI} db.dump

0 comments on commit bd8f265

Please sign in to comment.