Igor Savin
20629af916
Fix comment escaping for MySQL and PostgreSQL ( #4084 )
2020-10-27 10:05:21 +02:00
Kkmatt11
4edd56f156
MSSQL '?' solution ( #4053 )
...
Escape properly if literal '?' is needed.
2020-10-26 20:39:12 +02:00
Igor Savin
23073fa83d
Prepare to release 0.21.7 ( #4079 )
2020-10-25 15:18:49 +02:00
poliha
d3df4eb360
add migration stub for .cjs extension ( #4065 )
2020-10-24 17:56:09 +03:00
Jamie Peabody
8faaf9ce27
fixes apostrophe issue on mssql dialect ( #4077 )
...
Co-authored-by: Jamie Peabody <jpeabody@axway.com>
2020-10-24 17:55:02 +03:00
Jamie Peabody
162cf2ebcf
Fixes build issue related to Node.js 14 ( #4078 )
...
Co-authored-by: Jamie Peabody <jpeabody@axway.com>
2020-10-24 16:54:45 +03:00
Bogdan Chadkin
80355e4850
Replace inherits package with builtin utility ( #4059 )
2020-10-05 23:59:12 +03:00
Bogdan Chadkin
db1b052e5d
Replace mkdirp with recursive flag ( #4060 )
2020-10-05 23:58:22 +03:00
Guilherme Covre Dalleprane
975b5a919e
Ensure that semicolon is not appended to statements that already end with a semicolon ( #4052 )
2020-10-05 21:35:22 +03:00
Bogdan Chadkin
6f817a3b6e
Avoid lodash typecheks ( #4056 )
...
* Avoid lodash typecheks
Lodash is quite big project. Even with direct imports it loads [tons](https://github.com/knex/knex/pull/3804 ) of
code and still bloats node_modules. Especially since lodash mostly used
as a polyfill for modern features.
In this diff I attempted to reduce lodash usage by replacing type checks
with `typeof` operator which might be sufficient.
Also replaced lodash/isObject with custom simplified utility which does not
consider functions as objects and allows to simplify code in one place.
2020-10-05 21:29:39 +03:00
Mr D
be8a5715a3
Expected error message changed, Node v14.13.0 changed parsing error wording ( #4055 )
...
Co-authored-by: D10221 <daniel@BLINK-DEV-ONE.localdomain>
2020-10-01 10:04:58 +03:00
hansnull
8029396d2d
Mssql decimal fix ( #3910 )
2020-09-30 10:05:16 +03:00
Valéry Herlaud
8bc89b062d
[Types] Add arguments to QueryCallback in Where. ( #4034 )
2020-09-30 10:03:26 +03:00
Igor Savin
7cfb78d16a
Prepare to release 0.21.6
2020-09-27 21:55:32 +03:00
Duc Nghiem Xuan
f5835b379e
Unify SeedsConfig and SeederConfig ( #4003 )
...
These two types seems to describe the same thing while being out of sync.
2020-09-25 08:06:08 +02:00
Igor Savin
4a1638bfbe
Fix double merging of config for migrator ( #4040 )
2020-09-25 08:03:17 +02:00
James Greenleaf
7f16df98c2
Allow string[] type for directory in SeedsConfig ( #4033 )
2020-09-19 23:46:10 +03:00
Simon Lorenz
b65245e1fe
warn if whereNot is used with 'in' or 'between' ( #4038 )
...
Co-authored-by: Simon Lorenz <simon.lorenz@stadt-duisburg.de>
2020-09-19 23:45:11 +03:00
Igor Savin
e4fd98b486
Update dependencies ( #4039 )
2020-09-19 23:24:32 +03:00
Christiano Marques
a481dde82c
feat: new config parameter / CLI flag to prefixing seed filename with a timestamp ( #3873 )
2020-09-19 16:11:05 +03:00
Florent SCHILDKNECHT
2bf17e0509
fix(seed): throw error when specific seed file cannot be found ( #4011 )
...
fixes #4005
2020-09-04 09:48:18 +03:00
Igor Savin
2ffa7784d8
Prepare to release 0.21.5
0.21.5
2020-08-17 21:13:19 +03:00
Mr D
95e0593440
Test/document esm interop mixed formats (knexfile/migrations/seeds) ( #3986 )
2020-08-17 16:38:37 +02:00
Mr D
369bbd6293
Improve Esm interop ( #3985 )
...
refs #3978
2020-08-16 19:22:26 +03:00
Lorefnon
8a7db0c5a8
Bump version of dtslint ( #3984 )
...
Resolves #3983
2020-08-15 21:22:05 +03:00
Mr D
907cc763f6
#3978 Improve mjs module support ( #3980 )
2020-08-15 17:54:43 +03:00
Igor Savin
b2e3c5c4d9
Prepare to release 0.21.4
2020-08-10 16:18:00 +03:00
Mathieu DARTIGUES
f3c73ccd58
Add new option for seed : recursive ( #3974 )
2020-08-10 15:10:37 +02:00
Igor Savin
fb30ad599f
Merge remote-tracking branch 'origin/master'
0.21.3
2020-08-08 20:50:25 +03:00
Igor Savin
309eed648e
Prepare to release 0.21.3
2020-08-08 20:49:40 +03:00
Harish Karumuthil
8ba73e568a
Escape single quoted values passed to defaultTo function ( #3899 )
2020-08-08 20:48:45 +03:00
Tomi Turtiainen
a94886483d
Add .timeout(ms) to .raw()'s typescript typings ( #3885 )
2020-08-08 20:34:31 +03:00
issa marie tseng
378ae79641
Ensure DB stream is destroyed when the PassThrough is destroyed ( #2324 ). ( #3900 )
2020-08-08 20:27:47 +03:00
Igor Savin
55c3787644
Update dependencies ( #3971 )
2020-08-08 18:32:09 +03:00
cubikrichard
6203b59076
support postProcessResponse for streams ( #3870 ) ( #3931 )
2020-08-08 17:57:58 +03:00
Mr D
cfce685775
ESM module interop fails if calling module/package is of type 'module' #3937 ( #3938 )
2020-08-08 17:39:57 +03:00
Mathieu DARTIGUES
ab7644425d
Support multiple directories for seeds ( #3967 )
2020-08-08 15:21:43 +03:00
Kristjan
cec00da8b7
fix: add typing for double table column builder ( #3950 )
2020-08-08 15:18:30 +03:00
Casey Foster
3677e547a9
Fix migration source name in rollback all ( #3956 )
2020-08-07 18:53:59 +03:00
Lorefnon
447e592438
Resolve #3932 : Add a phantom tag to Ref type to mark received type parameters as used ( #3934 )
2020-08-07 18:52:49 +03:00
Michael Avila
c662dec194
Change query lab link to https ( #3933 )
2020-08-07 18:51:50 +03:00
Richard Eames
f6e403489f
Add null
as valid binding type ( #3946 )
2020-08-07 18:49:24 +03:00
Anand Nimkar
b59161f994
Fix getMergedConfig calls to include client logger ( #3920 )
2020-07-13 23:16:10 +02:00
Igor Savin
ff56c28b69
Prepare 0.21.2 release ( #3917 )
0.21.2
2020-07-10 01:07:21 +03:00
Vicente Canales
da54cf1ecf
Prefer void
as return type on migration generator ts stub ( #3865 )
...
The liberal use of `any` is frowned upon by some default tslint
configurations. That combined with the fact the these functions don't
need to return anything, makes it reasonable to use `void` over `any`
for the return type.
2020-05-22 20:48:38 +02:00
Keno Medenbach
2bd2ecd91c
MSSQL: Added the removal of a columns default constraint, before dropping the column ( #3855 )
2020-05-15 11:28:34 +02:00
maximelkin
4fa6e1f8c2
fix definition for raw querybuilders (bindings should be one object or array, not vararg) ( #3846 )
2020-05-13 16:28:39 +02:00
Steve Kreis
ee725268d2
Update README to reflect correct handling of native map function ( #3704 ) ( #3845 )
2020-05-07 17:39:52 +02:00
Igor Savin
8956b44430
Add development Docker configuration ( #3840 )
2020-05-06 23:10:31 +02:00
Igor Savin
c0afe14cde
Warn user if custom migration source is being reset ( #3839 )
2020-05-06 00:13:09 +02:00