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
Mr D
907cc763f6
#3978 Improve mjs module support ( #3980 )
2020-08-15 17:54:43 +03:00
Mathieu DARTIGUES
f3c73ccd58
Add new option for seed : recursive ( #3974 )
2020-08-10 15:10:37 +02:00
Mathieu DARTIGUES
ab7644425d
Support multiple directories for seeds ( #3967 )
2020-08-08 15:21:43 +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
Igor Savin
e37aeaa31c
Prepare for 0.21.0 release ( #3811 )
2020-04-19 00:40:23 +02:00
tkalliom
02d94d96b0
Reduce size of lodash in bundle ( #3804 )
2020-04-18 19:41:23 +02:00
Kabir Baidhya
a6551559f0
Minor improvements on the usage of fs utilities - unify all the fs functions into the same util/fs to simplify things ( #3749 )
2020-03-24 15:50:47 +01:00
Kabir Baidhya
a7031c3cef
Upgrade package mkdirp and improve it's usage ( #3741 )
2020-03-21 11:01:10 +01:00
Igor Savin
1c65562440
Prepare 0.20.0 release
2019-10-25 20:17:26 +02:00
maximelkin
d01600ba0d
refactor(bluebird): remove Bluebird.bind ( #3477 )
2019-10-15 23:03:35 +02:00
maximelkin
531714804b
Use util.promisify instead of Bluebird.promisify ( #3470 )
2019-10-15 09:11:59 +02:00
Lorefnon
b0c0db601a
Fix some issues around seed and migration generation ( #3479 )
2019-10-13 13:19:53 +02:00
Ricardo Graça
9aa7085b05
Rename src directory to lib ( #3338 )
2019-07-10 23:48:43 +02:00
Mikael Lepistö
7140a48226
Remove generated lib from repository and run build in prepublish
2016-01-21 09:59:30 +02:00
Sky Morey
7c1120e0e2
in progress
2015-12-08 11:37:31 -06:00
Mikael Lepistö
fef0a09197
Did npm run build
2015-08-25 10:23:34 +03:00
Jake Russo
18f543b35d
Add Earl Grey support
...
Add stubs for migrate, knexfile, and seed in Earl Grey. Add `.eg`
extension in migrate and seed js files and `eg` filetype in cli js
file.
Remove dot from eg string
Update build files
Change cli to executable
Update js-interpret for earl-grey
2015-07-28 23:44:56 -05:00
John BEPPU
a0a6ab9cd5
added LiveScript migrations correctly #903
...
- reverted changes made to lib/
- changed the right files in src
- ran `babel -L -D -w src/ --out-dir lib/` to generate files
from src/ to lib/
- committed files from src/ and their counterparts in lib/
together as one commit
2015-07-27 10:40:43 -07:00
Tim Griesser
521a6f9e97
Remove use strict, assumed in ES6
2015-05-09 14:01:19 -04:00
Tim Griesser
7e884cb325
Babel src -> lib, remove gulp
2015-05-09 13:58:18 -04:00
Tim Branyen
56d73165cb
Adds trailing commas to seed stubs
...
I just started started using the seed feature of knex, which is awesome!
I thought it might be nice to add a trailing comma to make it easier to
copy/paste new lines.
Just a minor tweak.
2015-05-03 13:41:56 -04:00
Tim Griesser
bdd0efa60b
Fix #804 , reference seed config for migrator
2015-05-01 11:37:41 -04:00
Tim Griesser
f9aab9dc76
Major internal refactor
...
Beefed up transaction implementation, still needs tests
and cleanup of nested transaction queues.
Left todo:
- Fix commented out tests
- Fix oracle driver's transactions
2015-04-22 10:34:14 -04:00
Tim Griesser
eee4e9c005
Fixing the overall class dependency approach, lots of internal cleanup, WIP
2015-04-19 16:31:52 -04:00
Hanam Do
c57facd3a7
Use 2 space indentation for seed stubs
...
Consistent with indentation for migrations
Closes #745
2015-03-22 11:57:14 -07:00
Noah Santorello
3a25c5ec58
Sample seed files now correctly return Promises tgriesser/knex#391
2014-10-13 04:12:29 -04:00
Tim Griesser
b718e2da64
Relative directory config for path.resolve in #515
2014-10-03 11:14:04 -04:00
Brian Delahunty
fda990b02d
Change seed generation to have same directory behaviour as migration
...
Change to seed behaviour to use the same path resolution as migration - essentially, replicating change SHA:b7672df53623dc9112c13120fc46eca5a48e5dd4 by @demmer
2014-10-02 11:51:52 -07:00
Vincent Schoettke
ef173db790
Changed jshint option unused to true and fixed warnings
2014-09-02 22:56:51 +02:00
Vincent Schoettke
f3874ac651
Fixed several jshint warnings. Added strict mode
2014-09-01 17:19:34 +02:00
Noah Santorello
26e4135f7f
Fixing path issues in migration and seed functionality
2014-07-21 19:27:26 -04:00
Noah Santorello
fda570eb1e
Fixing seed tests and jshint
2014-07-21 18:49:20 -04:00
Noah Santorello
ef159b85a8
Path.join error
2014-07-21 09:57:48 -04:00
Noah Santorello
65cb342e09
CLI outputs relative path of files, not just filename
2014-07-21 09:51:04 -04:00
Noah Santorello
f8d01e9901
Initial commit of seed functionality
2014-07-21 09:42:56 -04:00