Skip to content

Commit

Permalink
build: simplify/fix db config
Browse files Browse the repository at this point in the history
  • Loading branch information
joakimbeng committed Jan 8, 2020
1 parent fda9969 commit 347a30b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
image: postgres:12-alpine
environment:
POSTGRES_PASSWORD: ''
POSTGRES_DB: immigration_postgres
POSTGRES_DB: postgres
POSTGRES_USER: postgres

immigration:
Expand All @@ -19,4 +19,4 @@ services:
PGHOST: postgres
PGUSER: postgres
PGPASSWORD: ''
PGDATABASE: immigration_postgres
PGDATABASE: postgres
4 changes: 0 additions & 4 deletions migrations/20191219123300_fourth.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ exports.up = async () => {
await pool.query(`
DROP TABLE immigration_postgres;
`);
const {rows} = await pool.query(`SELECT * FROM migrations`);
console.log(
rows.map(row => `${row.name} - ${row.status} - ${row.date.toISOString()}`).join('\n')
);
};

exports.down = () => {};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:docker": "docker-compose up --exit-code-from immigration",
"posttest:docker": "docker-compose down",
"release": "standard-version",
"immigration": "immigration --use [./ --table migrations --user postgres --database immigration_postgres] -d migrations up --new",
"immigration": "immigration --use [./ --table migrations] -d migrations up --new",
"semantic-release": "semantic-release"
},
"repository": {
Expand Down

0 comments on commit 347a30b

Please sign in to comment.