diff --git a/README.md b/README.md index fed01042b..b9a59b77a 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,8 @@ You can create a DB from scratch, or you can use the `import-db.sh` script to cr ### Importing DB dump ```bash -bash scripts/import-db.sh USERNAME [DATABASE_NAME] [DUMP_FILE] +cd scripts/ +bash ./import-db.sh USERNAME [DATABASE_NAME] [DUMP_FILE] ``` If no DATABASE_NAME and DUMP_FILE arguments are given, the script will use the default values and create a `governance` db using the `development.dump` dump. diff --git a/scripts/clean-db.sh b/scripts/clean-db.sh index f1809727a..0ae6c8f44 100755 --- a/scripts/clean-db.sh +++ b/scripts/clean-db.sh @@ -28,4 +28,8 @@ DELETE FROM "public".jobs WHERE run_at < '$DATE'; DELETE FROM "public".proposals WHERE created_at < '$DATE'; SELECT count(*) FROM "public".proposals; + +DELETE FROM "public".users; + +DELETE FROM "public".unpublished_bids; EOF diff --git a/scripts/development.dump b/scripts/development.dump index 257d87e62..6024fc475 100644 Binary files a/scripts/development.dump and b/scripts/development.dump differ