Skip to content

Commit

Permalink
Allow typescript db migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Mar 10, 2018
1 parent c8eaf60 commit eb842a2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
3 changes: 2 additions & 1 deletion database.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"user": "northwind_user",
"password": "theWindi$bl0wing",
"host": "localhost",
"database": "northwind"
"database": "northwind",
"multiple-statements": true
}
}
17 changes: 6 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"@types/winston": "^2.3.7",
"@types/ws": "^4.0.1",
"chai": "^4.1.2",
"db-migrate-plugin-typescript": "^2.0.0",
"json-typescript": "^1.0.0",
"mocha": "^5.0.0",
"mocha-typescript": "^1.1.12",
Expand Down
2 changes: 1 addition & 1 deletion scripts/db/migrate/create.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env sh
./node_modules/.bin/db-migrate create -e sqlite $1 $2 $3 $4 --sql-file
./node_modules/.bin/db-migrate create -e sqlite $1 $2 $3 $4
17 changes: 12 additions & 5 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"extends": "tslint:recommended",
"rules": {
"no-unused-variable": [true],
"no-unused-variable": [
true
],
"no-console": true,
"semicolon": [true, "always"],
"semicolon": false,
"space-before-function-paren": false,
"interface-name": false,
"trailing-comma": false,
"max-line-length": false,
Expand All @@ -16,14 +19,18 @@
}
],
"quotemark": false,
"arrow-parens": [false],
"arrow-parens": [
false
],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore"
],
"await-promise": true,
"prefer-const": [false]
"prefer-const": [
false
]
}
}
}

0 comments on commit eb842a2

Please sign in to comment.