Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #46 from 8thlight/update-migration-script
Browse files Browse the repository at this point in the history
Update migration script
  • Loading branch information
TakaGoto authored Oct 2, 2018
2 parents 4120a18 + 23b4537 commit 5a2d05b
Showing 5 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -16,14 +16,20 @@ before_install:
- make installtools
- bash ./scripts/install-postgres-10.sh
- npm install -g ganache-cli
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update && sudo apt-get install yarn

before_script:
- go get -u github.com/pressly/sup/cmd/sup
- sudo -u postgres createdb vulcanize_private
- make migrate NAME=vulcanize_private
- bash ./pkg/transformers/start_test_chain.sh
- cd postgraphile && yarn

script:
- yarn test
- cd ../
- make test

notifications:
1 change: 1 addition & 0 deletions postgraphile/spec/server/runtime.spec.ts
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ describe('bootServer', () => {
middleware: jasmine.createSpyObj<PostgraphileMiddleware>(['call']),
options: {
pluginHook: jasmine.createSpy('pluginHook'),
watchPg: true,
simpleSubscriptions: true,
graphiql: true,
webSocketMiddlewares: [] },
1 change: 1 addition & 0 deletions postgraphile/src/adapters/postgraphile.ts
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ export interface PostgraphileMiddleware extends RequestHandler {}
export interface PostgraphileOptions {
pluginHook: PluginHookFn,
simpleSubscriptions: boolean;
watchPg: boolean;
graphiql: boolean;
// NOTE (jchristie@8thlight.com) Shape of the middlewares is not
// currently important to this application, but if a need arises,
1 change: 1 addition & 0 deletions postgraphile/src/server/config.ts
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ export function buildServerConfig(
const options: PostgraphileOptions = {
pluginHook: pluginHook,
simpleSubscriptions: true,
watchPg: true,
graphiql: true,
webSocketMiddlewares: [
expressSessionHandler,
2 changes: 1 addition & 1 deletion scripts/create_migration
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

if [ $# -eq 1 ]
then
$GOBIN/migrate create -dir ./db/migrations -ext sql $1
$GOPATH/bin/migrate create -dir ./db/migrations -ext sql $1
else
echo "**An Error Occurred**"
echo "Usage: ./scripts/create_migration <migration-name>"

0 comments on commit 5a2d05b

Please sign in to comment.