1 | #!/usr/bin/env bash
|
2 |
|
3 | if [ "$1" == "before" ]; then
|
4 | psql osm-comments-api-test < test/fixtures/initial_data.sql
|
5 | elif [ "$1" == "after" ]; then
|
6 | psql osm-comments-api-test -c "delete from changeset_comments;"
|
7 | psql osm-comments-api-test -c "delete from changeset_tags;"
|
8 | psql osm-comments-api-test -c "delete from changesets;"
|
9 | psql osm-comments-api-test -c "delete from note_comments;"
|
10 | psql osm-comments-api-test -c "delete from notes;"
|
11 | psql osm-comments-api-test -c "delete from users;"
|
12 | else
|
13 | exit 1
|
14 | fi
|