78 Commits

Author SHA1 Message Date
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
Mr D
907cc763f6
#3978 Improve mjs module support (#3980) 2020-08-15 17:54:43 +03:00
Casey Foster
3677e547a9
Fix migration source name in rollback all (#3956) 2020-08-07 18:53:59 +03:00
Anand Nimkar
b59161f994
Fix getMergedConfig calls to include client logger (#3920) 2020-07-13 23:16:10 +02: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
c0afe14cde
Warn user if custom migration source is being reset (#3839) 2020-05-06 00:13:09 +02:00
Igor Savin
38f54ce8f0
Refactor migration logic to use async/await. Add test case for using classes with custom migration sources (#3838) 2020-05-05 19:10:50 +02:00
Iryna Zadorozhna
fa906278b8
add support cjs files by default (#3829)
Co-authored-by: Kyrylo <kyrylo.onufriiev@gmail.com>
2020-04-28 01:21:39 +02:00
Zach McElrath
b626702b47
Add migrate:unlock command, truncate on forceFreeMigrationsLock (#3822) 2020-04-23 21:51:32 +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
maximelkin
b025aea318
remove dependency on bluebird methods from sources (#3683)
Co-authored-by: Brian Lauber <constructible.truth@gmail.com>
2020-02-25 22:50:24 +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
Nekrasov Ilya
6b9fb0ec01 disable_migrations_list_validation_feature (#3448) 2019-10-12 21:45:39 +02:00
maximelkin
f56eaf5cfc Bluebird remove map mapSeries (#3474) 2019-10-11 10:12:56 +02:00
Taras Ozarko
7fabae9f56 Migrations up/down commands: filename parameter (#3416) 2019-10-06 18:00:04 +02:00
Ben Darnell
8f40f8d534 migrate: Refactor _lockMigrations to avoid forUpdate (#3395) 2019-08-28 13:27:18 +02:00
Vithalreddy.M.B
658e612148 knex cli list all migrations with status (#3390) (#3409) 2019-08-24 12:01:12 +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
eed0004031 mssql: added top (?) back to fix that error. also removed loading of empty file 2015-12-15 16:48:19 -06:00
Mikael Lepistö
3dd5ac896a npm run build (for changed file) 2015-12-15 21:50:17 +02:00
Dustin Martin
d9ac2c1f8f Add status method
Returns 0 if all migrations are run and DB is up to date. Return negative number if DB is missing migrations. Return positive number if DB is ahead (rare case, e.g. if migrations were run then code is reverted)
2015-11-23 10:50:19 -06:00
Mikael Lepistö
e2eacc7d6e Ran 'npm run build' since tape tests would not pass if build is not updated. 2015-11-10 23:27:26 +02:00
harriha
c41ffdb02a Update lib/ via running 'npm run dev' 2015-09-08 14:00:17 +10:00
harriha
478b03e106 Update lib/ via running 'npm run dev' 2015-08-30 23:34:09 +03: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
John BEPPU
dc9b75440b Revert "add LiveScript support back in to knex migrations"
This reverts commit 987b6d9f3fd47f7c25c7e112d6e6d2aee53911ba.
2015-07-27 10:22:41 -07:00
John BEPPU
987b6d9f3f add LiveScript support back in to knex migrations 2015-07-20 10:40:47 -07:00
Tim Griesser
421cb4f4eb Commit compiled files 2015-06-01 09:17:11 -04:00
Tim Griesser
cf757a5647 Fix #853, raw bindings should be optional 2015-06-01 07:30:38 -04:00
Tim Griesser
89fe76faa3 release 0.8.6 2015-05-20 11:21:59 -04:00
Tim Griesser
60ed217f48 Fix #833, migration functions hanging on non-promise 2015-05-20 11:16:13 -04:00
Tim Griesser
01bae6a598 Add disableTransactions option, #834 2015-05-20 11:08:27 -04: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 Griesser
ca158836a0 Cast buffer to string, #796 2015-04-28 08:14:22 -04:00
Tim Griesser
7b17cc404a Oracle test suite up to date 2015-04-27 20:22:05 -04:00
Tim Griesser
46e318d6da Cleaning up transactions, passing options arg to pipe 2015-04-23 14:51:33 -04:00
Tim Griesser
34b6bd4076 Merge pull request #788 from zcei/feature/migrations-transaction
Wraps migrations in transations
2015-04-22 15:52:52 -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
Chris Papazian
6bad04aa2b Don't use camelCase in aliased column names
Change the query that gets the max batch to be all lowercase to support databases that don't allow cased names.
2015-04-01 14:58:52 -07:00