Skip to content

Commit

Permalink
avniproject/avni-etl#112 | Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Nov 21, 2024
1 parent 5243199 commit 6944f54
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions makefiles/externalDB.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ restore-org-dump:
ifndef dumpFile
@echo "Provde the dumpFile variable"
exit 1
endif
ifndef dbRole
@echo "Provde the dbRole variable"
exit 1
else
sed -i '' 's/from form/from public.form/g' "$(dumpFile)"
sed -i '' 's/inner join form/inner join public.form/g' "$(dumpFile)"
make _clean_db _build_db database=avni_org
make create-local-db-impl-user db=avni_org user=$(dbRole)
make restore-dump-only dumpFile=$(dumpFile)
endif
-sed -i '' 's/from form/from public.form/g' "$(dumpFile)"
-sed -i '' 's/inner join form/inner join public.form/g' "$(dumpFile)"
-make _clean_db _build_db database=avni_org
-make create-local-db-impl-user db=avni_org user=$(dbRole)
-make restore-dump-only dumpFile=$(dumpFile)

restore-staging-dump:
ifndef dumpFile
Expand All @@ -39,7 +39,8 @@ else
psql -U openchs -d avni_staging_released < $(dumpFile)
endif

create-local-db-impl-user: ## Creates new implementation db user in local staging database
create-local-db-i
mpl-user: ## Creates new implementation db user in local staging database
ifndef user
@echo "Provde the variable user"
exit 1
Expand Down

0 comments on commit 6944f54

Please sign in to comment.