Taras Ozarko
7fabae9f56
Migrations up/down commands: filename parameter ( #3416 )
2019-10-06 18:00:04 +02:00
Tim Hibbard
68e1ae2aed
Support stored procedures in Oracle
2019-09-22 22:31:56 +02:00
Martti Laine
5417cacdb1
Fix for concurrent child transactions failing ( #2213 ) ( #3440 )
...
* Fix for concurrent child transactions failing (#2213 )
* Skip new sibling transaction test for mssql
* Update test to ensure Promise resolve order
2019-09-20 14:37:58 +02:00
Kristjan
4ade98980e
feat: add undefined columns to undefined binding(s) error ( #3425 )
2019-09-04 22:59:04 +02:00
Ben Darnell
8f40f8d534
migrate: Refactor _lockMigrations to avoid forUpdate ( #3395 )
2019-08-28 13:27:18 +02:00
Taras Ozarko
d6426d75e1
Add ability to manually define schema for enu with useNative ( #3307 ) ( #3413 )
2019-08-25 23:07:30 +02:00
Ihor Sakaylyuk
1ef1a4ef07
Fix native enum with specified schema ( #3307 ) ( #3400 )
2019-08-24 17:37:29 +02:00
Vithalreddy.M.B
658e612148
knex cli list all migrations with status ( #3390 ) ( #3409 )
2019-08-24 12:01:12 +02:00
Harminder Virk
831b9bcc43
fix: make transaction rejection consistent across dialects ( #3399 )
2019-08-17 13:01:03 +02:00
Igor Savin
871dadb348
More consistent handling of nested transactions ( #3393 )
2019-08-16 16:28:25 +02:00
Ricardo Maes
18632edfc6
Fix broken noWait test ( #3398 )
2019-08-16 07:29:24 +02:00
Igor Savin
2c3b4ded7b
Fallback to JSON when using JSONB in MySQL ( #3394 )
...
fixes #3386
2019-08-14 17:11:01 +02:00
Felix Mosheev
8111bb3ee8
Feat: Allow to extend knex query builder ( #3334 )
2019-07-23 20:45:03 +02:00
Igor Savin
49456691d8
Update dependencies ( #3366 )
2019-07-23 18:00:13 +02:00
Matthew Kuo
054ce36b0a
Add .isCompleted() to transaction ( #3368 )
2019-07-23 17:59:55 +02:00
Lorefnon
3e1a5ee0de
Minor enhancements around aliasing of aggregates ( #3354 )
...
- Allows an options object to specify alias (as suggested in https://github.com/tgriesser/knex/issues/3315#issuecomment-507439215 ) (Closes #3315 )
- Allows multiple aliases when using object syntax (Closes #2871 )
2019-07-16 18:48:28 +02:00
Igor Savin
fb06464da0
Update tarn.js ( #3345 )
...
* Update tarn.js
* Remove beforeDestroy
2019-07-11 14:57:59 +02:00
Ricardo Graça
9aa7085b05
Rename src directory to lib ( #3338 )
2019-07-10 23:48:43 +02:00
Bohdan Shulha
c6481e8c97
fix: Respect the knexfile stub option while generating a migration ( #3337 )
2019-07-10 21:45:47 +02:00
Igor Savin
e971c5198b
Update dependencies, fix new eslint errors ( #3339 )
2019-07-10 20:47:56 +02:00
Felix Mosheev
8b31a43761
feat: Run specific seed file ( closes #801 ) ( #3335 )
2019-07-07 11:11:39 +02:00
Ricardo Maes
bc1ddcad01
Implement "skipLocked()" and "noWait()" ( #2961 )
2019-07-06 14:05:53 +02:00
Vamp
2b6333249a
CLI: add --stub option to migration:make ( #3316 )
2019-07-04 22:08:01 +02:00
Dmitrii Maganov
a0e9be548d
Fix return duplicate transaction promise for standalone transactions ( #3328 )
2019-07-04 22:05:23 +02:00
Lorefnon
56c3af8512
Fix issues around specifying default values for columns ( #3318 )
2019-06-30 20:08:15 +02:00
Ihor Sakaylyuk
0a85331525
CLI: Fix empty --version output ( #3312 )
2019-06-30 18:23:50 +02:00
Igor Savin
4a631a3c00
Do not reject promise on transaction rollback ( #3235 )
2019-06-21 12:56:00 +02:00
Igor Savin
f328fbbdb4
Expose executionPromise for transactors ( #3297 )
2019-06-19 22:12:21 +02:00
Igor Savin
858c7b6f1e
Fix extension resolution from env configs ( #3294 )
2019-06-19 01:33:16 +02:00
Igor Savin
5301b29186
Prepare for 0.18.0-next1 release ( #3291 )
2019-06-18 01:36:28 +02:00
Igor Savin
f392b5cef3
Remove Bluebird.method and one instance of .bind ( #3290 )
2019-06-18 00:07:24 +02:00
Benjamin Ki
9d8e900050
refactor: replace usage of Bluebird Promise.tap with native Promise.then ( #3287 )
2019-06-17 13:00:31 +02:00
Igor Savin
1e950b93e4
Name Bluebird usage explicitly. Remove spread and thenReturn ( #3285 )
2019-06-17 02:14:17 +02:00
Igor Savin
04b12f234b
Use extension from knexfile for generating migrations unless overriden ( #3282 )
2019-06-14 08:44:02 +02:00
Chris Allen
a65a95bc67
Use migrations.extension from config when generating migration ( #3242 )
2019-06-13 23:32:03 +02:00
Igor Savin
5eaac66ea5
Merge 0.17 into master ( #3277 )
2019-06-11 02:05:31 +02:00
Igor Savin
4b6429ebf9
Reduce bluebird usage ( #3267 )
2019-06-08 02:34:41 +02:00
Igor Savin
c431ffc35a
Drop support for Node.js 6. Remove babel. ( #3227 )
2019-06-04 00:37:17 +02:00
Adrien Risser
9b74ccbfad
Fix error message bubbling up on seed error ( #3248 )
2019-06-03 18:10:23 +02:00
Lee Allen
1fe5ee0ea3
Add migrate:down functionality ( #3228 )
2019-05-30 00:37:18 +02:00
Igor Savin
f599f6ac13
Try using much smaller timeouts ( #3226 )
2019-05-27 23:21:21 +02:00
Igor Savin
5307dacc66
Implement support for returning started transaction without using transaction() methods callback function ( #3099 )
2019-05-26 18:03:07 -07:00
Lorefnon
54a7a4a35f
Support multi-column whereIn in sqlite through values clause ( #3220 )
...
Fixes #3042
2019-05-25 12:53:20 -07:00
Zachary Mott
f4593fb9b4
Allow users to specify the migrations "tableName" parameter via the CLI. ( #3214 )
2019-05-21 17:41:50 -07:00
Lorefnon
e2e044c0f2
Unify object options handling for datetime/timestamp across dialects and update type definitions ( #3181 )
...
* Fix windows incompatiblity in npm scripts
* Update timestamp and datetime signature in oracle dialect to be consistent with other dialects
2019-05-19 05:10:59 -07:00
Lee Allen
08478f2db9
Feature/add up for migrations ( #3205 )
...
* Add ability to run migrate:up command to only run the next migration
* Add cli test for migrate:up
* Add test for migrator
* Add stub
* Add type
* Fix wording of test
2019-05-19 04:14:52 -07:00
Igor Savin
f34013be5f
Use cli-testlab for testing CLI ( #3191 )
...
* Bump version to 0.16.4
* Use cli-testlab for testing CLI
2019-05-13 13:39:02 +02:00
Mikael Lepistö
8a9a648ae2
Docker based test dbs ( #3157 )
...
* Fixed some of the tests failing with various dialect combinations
* Setup all test databases to run in docker
* Fixed test suite and updated travis to use docker
* Fixed some tests in master and disabled oracle tests while setting everything else to work again
* Changed docker to use latest postgresql alpine image
* Re-enabled all oracledb tests
* Install oracle client libs to oracle server and copy them to travis to make node oracledb package to work
* Disabled random failing oracle tests and added test to show that oracle update in transaction does not seem to work ACID
* Update package.json
* Update package.json
* Fixed linting issues
* Fixed waiting for postgres to use the same DB image that database is using.
* Removed installing oracledb driver in travis if not needed .travis.yml
* Cleaned up package.json more
* Created static name for oracledb container to allow copying files out of it on different docker versions
* Removed webpack from deps
2019-05-13 12:21:36 +03:00
Daniel Mills
617d36ea01
add clearHaving function and add test ( #3141 )
2019-05-12 10:20:26 +02:00
Lee Allen
75df3b6f7b
Feature/add rollback all to cli ( #3187 )
...
* Add --all flag for rollback in cli
* Set up test for rollback --all cli migration command
* Fix test for cli migrate:rollback --all
2019-05-12 01:35:51 +02:00