Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 0 additions & 98 deletions .github/workflows/push.yml

This file was deleted.

20 changes: 19 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,22 @@ changelog:
build-changelog changelog.yaml --org PolicyEngine --repo policyengine-api --output CHANGELOG.md --template .github/changelog_template.md
bump-version changelog.yaml setup.py policyengine_api/constants.py
rm changelog_entry.yaml || true
touch changelog_entry.yaml
touch changelog_entry.yaml

DB_NAME=my_local_db
DB_USER=postgres
DB_HOST=localhost


delete-db:
PGPASSWORD=$(PGPASSWORD) dropdb -U $(DB_USER) -h $(DB_HOST) $(DB_NAME) || echo "Database not found."

create-db:
PGPASSWORD=$(PGPASSWORD) createdb -U $(DB_USER) -h $(DB_HOST) $(DB_NAME)

reset-db: delete-db create-db

create-schema:
PGPASSWORD=$(PGPASSWORD) psql -U $(DB_USER) -h $(DB_HOST) -d $(DB_NAME) -f schema.sql

recreate-db: reset-db create-schema
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bump: patch
changes:
changed:
- Updated make file to show delete local database
Loading