Skip to content

Commit

Permalink
Add yarn db-version script
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya committed Sep 25, 2018
1 parent efdf655 commit 6f7c4ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion knexfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (process.env.NODE_ENV === 'production') {
}

// https://github.com/tgriesser/knex/issues/852
if (!(!process.env.PGSSLMODE || process.env.PGSSLMODE === 'disabled')) {
if (process.env.PGSSLMODE || process.env.PGSSLMODE !== 'disable') {
connection.ssl = {
rejectUnauthorized: false,
ca: fs.readFileSync(process.env.PGSSLROOTCERT).toString(),
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
"db-migrate": "knex migrate:latest",
"db-rollback": "knex migrate:rollback",
"db-seed": "knex seed:run",
"db-version": "knex migrate:currentVersion",
"deploy": "yarn install && yarn relay && yarn build && firebase deploy"
}
}
2 changes: 1 addition & 1 deletion src/common/LoginButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

/* @flow */

import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import Button from '@material-ui/core/Button';
import cx from 'classnames';
import { darken } from '@material-ui/core/styles/colorManipulator';
import { withStyles } from '@material-ui/core/styles';

Expand Down
2 changes: 1 addition & 1 deletion src/server/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (process.env.NODE_ENV === 'production') {
}

// https://github.com/tgriesser/knex/issues/852
if (!(!process.env.PGSSLMODE || process.env.PGSSLMODE === 'disabled')) {
if (process.env.PGSSLMODE && process.env.PGSSLMODE !== 'disable') {
connection.ssl = {
rejectUnauthorized: false,
ca: fs.readFileSync(process.env.PGSSLROOTCERT).toString(),
Expand Down

0 comments on commit 6f7c4ab

Please sign in to comment.