325 Commits

Author SHA1 Message Date
Tim Griesser
90d8566f98 basic websql support 2013-12-23 23:06:07 -05:00
Tim Griesser
5b5a6f62fd use bluebird nodeify, add catch/finally promise methods 2013-12-18 17:24:28 -05:00
Les Orchard
f2dd5f8305 Only use files with the correct extension for migrations 2013-12-12 08:59:35 -05:00
Tim Griesser
7e4913bd32 Fixing changes in cli script update 2013-12-11 12:13:29 -05:00
Tim Griesser
d8c332185e #125, using local knex install for cli if possible 2013-12-11 12:05:19 -05:00
Tim Griesser
06c38bcc2d Allow for returning in update queries, #132 2013-12-10 14:55:05 -05:00
Ben Drucker
e152884e5b Explicitly sort files for migrations, fixing #130 2013-12-09 12:39:23 -05:00
Tim Griesser
b65bf4f231 removing umd, Promise.method on query 2013-12-02 23:58:41 -05:00
Aiden Bell
4212205084 Proposed fix for https://github.com/tgriesser/knex/issues/118 2013-12-01 21:14:23 +00:00
Tim Griesser
3c8d08a64b Removing unnecessary UMD
When this eventually enabled on the client side,
we can build this into the build script.
2013-11-27 16:51:01 -05:00
Ben Drucker
b5808c537c Fix direct inclusion of Knex instance in migration config 2013-11-27 13:20:03 -05:00
Ben Drucker
c3bd8bf8b1 Pass promise constructor to migrations, not a fulfilled promise 2013-11-26 16:47:13 -05:00
Ben Drucker
0d30bd7d2b Match CoffeeScript stub to JS 2013-11-26 12:19:27 -05:00
tajima-junpei
199d09edcf Resolve configuration file path on migration
It changes so that the path of the migration config file is resolved before it is required.
This avoids `Cannot find module` error when the configuration file path is specified as relative path.
2013-11-26 08:32:53 +09:00
Tim Griesser
d3c927af16 Better error info on schema
Add info to docs about debugging promises
Add early errors to schema interface if table is not defined
2013-11-25 11:14:13 -05:00
Tim Griesser
667a20b66e switching out underscore for lodash 2013-11-25 02:00:12 -05:00
Tim Griesser
d334de5326 fixes #109, adding groups to cloned fields 2013-11-25 01:48:39 -05:00
Tim Griesser
39ec293892 Initial version of the migration cli ready 2013-11-25 01:43:55 -05:00
Tim Griesser
25b99f2622 Merge branch 'master' of github.com:tgriesser/knex
* 'master' of github.com:tgriesser/knex:
  Test for aggregate function with output name.
  Support for multiple aggregate functions.
  Failing test for #108
  Drop default output name for aggregate functions.
2013-11-25 00:55:49 -05:00
Tim Griesser
f78fc3e199 continuing work on migrations cli 2013-11-25 00:55:26 -05:00
Tim Griesser
6b5a74383e Merge branch 'migrations' of github.com:benesch/knex into benesch-migrations
* 'migrations' of github.com:benesch/knex:
  Create skeleton CLI for migrations
  Executabilize bin/knex
2013-11-24 19:25:49 -05:00
Luigy Leon
bbd50a6514 Support for multiple aggregate functions. 2013-11-23 13:09:57 -05:00
Tim Griesser
64f9deb651 fixes #100, increment/decrement values 2013-11-20 09:17:08 -05:00
Kia Rahimian
d26c1b7b95 fixed bug with .having() 2013-11-19 22:47:38 -05:00
Tim Griesser
7a6937fdb3 cleanup for readability of migrations, mostly done 2013-11-02 17:39:52 -04:00
Tim Griesser
b733e01f59 fixing some issues with promises 2013-11-02 13:43:12 -04:00
Tim Griesser
065322e007 working on the migrations spec, debugging bluebird 2013-11-02 13:14:38 -04:00
Tim Griesser
d01dd8a9a1 merging with master 2013-11-02 10:19:09 -04:00
Tim Griesser
8b2ef4eef1 merging bluebird into migrations 2013-11-02 09:26:31 -04:00
Tim Griesser
17d09f2655 Merge branch 'bluebird'
* bluebird:
  cleanup on the .then interface
  swapping in bluebird, some promise cleanup
2013-11-02 09:24:17 -04:00
Tim Griesser
354c9ea834 cleanup on the .then interface 2013-11-02 09:24:08 -04:00
Tim Griesser
48096b1468 fix #98, aggregates on toString / clone 2013-10-31 10:34:20 -04:00
Nikhil Benesch
2f1d4e49c4 Create skeleton CLI for migrations 2013-10-28 10:06:40 -04:00
Tim Griesser
b20c6c3f8e swapping in bluebird, some promise cleanup 2013-10-27 22:34:58 -04:00
Tim Griesser
86a1a24a1a some work on the migration code & api 2013-10-24 21:54:35 -04:00
Tim Griesser
5c496b9fa5 remove possible sql injection in 'orderBy', thanks @sebgie 2013-10-15 09:15:42 -04:00
Tim Griesser
b70e787d25 fix for #84, adding forUpdate and forShare on transactions 2013-10-14 08:02:26 -04:00
Tim Griesser
2ec64f6dd6 Merge branch 'master' of github.com:tgriesser/knex
* 'master' of github.com:tgriesser/knex:
  added tests for table.charset and table.collate
  added charset() and collate() for mysql schema builder
2013-10-14 07:22:45 -04:00
Tim Griesser
1ec57c12b7 fix for #91, keep the correct query type on clones 2013-10-14 07:20:12 -04:00
Hung Tran
94c4c0426f added charset() and collate() for mysql schema builder 2013-10-10 10:53:41 -05:00
Tim Griesser
b108d6fd5b officially add and document column method 2013-09-27 21:50:46 -04:00
Tim Griesser
2d1c0f019d fix for internal mutation of builder on multiple toSql calls 2013-09-24 08:14:02 -04:00
Tim Griesser
11bb681baa lots of docs & updated comments 2013-09-17 07:15:18 -04:00
Tim Griesser
1d21980eef prep for 0.4.1 2013-09-16 10:49:30 -04:00
Tim Griesser
56d78d7172 merging in 0.4.0 2013-09-13 17:20:40 -04:00
Tim Griesser
a88024af8f 0.4.0 2013-09-13 17:14:47 -04:00
Tim Griesser
092cfc6059 more cleanup & docs 2013-09-13 16:58:38 -04:00
Tim Griesser
76c2dbd75e working on the docs, more internal cleanup 2013-09-13 15:36:49 -04:00
Tim Griesser
b1787cbb10 adding a toString method that properly escapes queries, fixes #59 2013-09-13 12:59:12 -04:00
Tim Griesser
71b47e925b pulling in the option feature from #64, rename to options 2013-09-13 11:40:51 -04:00