6 Commits

Author SHA1 Message Date
Aurélio A. Heckert
bb5da4b200 Migrations with CLI and without knexfile (#2884)
* Migrations with CLI and without knexfile

Allows to create and run migrations.

closes #2819

* Apply tweaks to migrate without knexfile

Thanks to @kibertoad comments!
The bigger change was to remove the bash script to test knex's cli command, and replace it with a jake file. I believe this jake file may be used as a base for future cli tests.

* Replace `fs.promises` with `new Promise`
2018-11-06 11:03:18 +02:00
Tim Griesser
232fe9f151
Add Prettier (#2697)
* Add prettier
* Run files through prettier
2018-07-09 08:10:34 -04:00
P-Seebauer
15706c0d00 2351 CLI sets exit-code 1 if the command supplied was not parseable (#2358)
* CLI Sets exit code to 1 if the command wasn't parseable

* Fix color output for errors in the cli
2018-01-19 00:29:38 +02:00
Saugat Acharya
ff4f9e213b align commands description (#1857) 2017-01-11 15:02:24 +02:00
Prashant Tiwari
ba5ae37097 Support knexfile, migration and seeds in TypeScript (#1769)
* Support knexfile, migration and seeds in TypeScript

* Look for .ts seed files

* Fix linter warning for max-len

* Enforce migration scripts to return a promise

* Remove Promise.all example from stub
2016-12-01 10:32:21 +02:00
Tim Griesser
d1a55a907d Moving bin/cli outside of src to allow install from master 2016-09-13 09:31:58 -04:00