Skip to content

Commit

Permalink
feat(defaultValue): add advanced handling for defaultValues
Browse files Browse the repository at this point in the history
This adds the possibility to pass raw defaultValues and special defaultValues such as
CURRENT_TIMESTAMP.

Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
  • Loading branch information
wzrdtales committed Feb 11, 2019
1 parent 111586d commit a13c0e0
Show file tree
Hide file tree
Showing 6 changed files with 1,165 additions and 788 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ node_js:
- 4
- 5
- 6
- 8
- node

notifications:
email:
Expand All @@ -20,6 +22,8 @@ os:
- linux

matrix:
allow_failures:
- node_js: node
fast_finish: true

sudo: false
Expand All @@ -40,5 +44,5 @@ before_install:
- export CXX=g++-4.8; export CC=gcc-4.8;

before_script:
- createdb db_migrate_test
- cp test/db.config.ci test/db.config.json
- createdb db_migrate_test
- cp test/db.config.ci test/db.config.json
100 changes: 50 additions & 50 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"homepage": "https://github.com/db-migrate/pg",
"dependencies": {
"bluebird": "^3.1.1",
"db-migrate-base": "^1.5.2",
"pg": "^7.4.1",
"db-migrate-base": "^1.6.3",
"pg": "^7.8.0",
"semver": "^5.0.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/db.config.ci
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"pg": {
"driver": "pg",
"database": "db_migrate_test",
"username": "postgres"
"user": "postgres"
},
"sqlite3": {
"driver": "sqlite3",
Expand Down
Loading

0 comments on commit a13c0e0

Please sign in to comment.