2646 Commits

Author SHA1 Message Date
Kris Reeves
f83d28e508 Don't attempt to release resources that have been disposed of already 2015-09-12 09:43:40 -07:00
harriha
c41ffdb02a Update lib/ via running 'npm run dev' 2015-09-08 14:00:17 +10:00
harriha
b764793628 Document transactions in migrations 2015-09-08 13:59:27 +10:00
harriha
b1f2c258df Allow enabling/disabling transaction per-migration
Not just disabling transaction per-migration, but also enabling
it in case transactions were turned globally off with
config.disableTransactions.
2015-09-08 13:59:27 +10:00
harriha
3d85822a28 Add integration tests for per-migration transactions
Since per-migration config is defined in the migration files
themselves, new test migration files are needed.
2015-09-08 13:59:27 +10:00
harriha
a095feee21 Add a test for checking migrations with all transactions disabled 2015-09-08 13:59:27 +10:00
harriha
e614e89d22 Add missing return 2015-09-08 13:59:26 +10:00
Rhys van der Waerden
beaccbf898 Merge pull request #958 from harriha/bugfix/allow-zero-in-join-clause
Allow zero in join clause, fixes #953
2015-09-08 13:11:40 +10:00
Rhys van der Waerden
647393c9e1 Merge pull request #964 from gangstead/numeric-docs
Clarify documentation for defaults for precision and scale
2015-09-04 09:45:06 +10:00
Steve Gangstead
187cad5068 Clarify documentation for defaults for precision and scale 2015-09-03 18:14:39 -05:00
Rhys van der Waerden
482451d019 Merge pull request #959 from MWGitHub/patch-1
Fix small grammar error in docs
2015-09-02 18:11:32 +10:00
Mike
21ce641bea Fix small grammar error in docs 2015-09-01 09:46:15 -04:00
harriha
478b03e106 Update lib/ via running 'npm run dev' 2015-08-30 23:34:09 +03:00
harriha
4026da3f9a Check for undefined explicitly. Fixes #953.
Value 0 didn't work as expected with the previous check.
2015-08-30 23:28:14 +03:00
harriha
5003b41dae Add tests for a join with value 0 2015-08-30 23:21:11 +03:00
Rhys van der Waerden
4fe10df691 Merge pull request #952 from tschuy/master
Specify how migration cli chooses environment
2015-08-28 17:43:56 +10:00
Evan Tschuy
1aada60f4b specify how migration cli chooses environment 2015-08-27 15:25:30 -07:00
Rhys van der Waerden
fc6a7e2825 Merge pull request #946 from elhigu/postgres-question-mark-escaping-support
Postgres question mark escaping support
2015-08-25 17:52:51 +10:00
Mikael Lepistö
fef0a09197 Did npm run build 2015-08-25 10:23:34 +03:00
Mikael Lepistö
596356f205 Added documentation about PostgreSQL \? escaping. 2015-08-25 10:19:35 +03:00
Mikael Lepistö
b9d9a99f80 Added \? escape sequence to postgres dialect to allow using ? operator. 2015-08-25 10:19:35 +03:00
Andrew Turner
358805797e added note and example for enum values to be an array 2015-08-21 12:16:38 -05:00
Rhys van der Waerden
255daec9c8 Merge pull request #518 from danieltdt/schema-support
Add postgres schema support
2015-08-16 15:58:21 +10:00
Daniel Teixeira
9b94cfa1fe add documentation for .withSchema methods 2015-08-14 19:45:38 -03:00
Daniel Teixeira
8e780a8115 rename .using to .withSchema 2015-08-14 19:17:06 -03:00
Daniel Teixeira
70e4692638 add support to postgres search_path 2015-08-09 23:04:57 -03:00
Daniel Teixeira
3f8f50425f add schema support for schema builder 2015-08-09 23:04:53 -03:00
Daniel Teixeira
402dbd9903 add schema support for postgres queries 2015-08-09 20:48:33 -03:00
Daniel Teixeira
17df5c6542 add basic schema support on queries 2015-08-09 20:38:26 -03:00
Ian Sinnott
a8a55e9b35 Add knex query lab link to readme. 2015-08-05 18:38:37 -07:00
Rhys van der Waerden
441675d4db Merge pull request #885 from fereidani/patch-1
Add documentation for createTableIfNotExists
2015-08-01 11:59:42 +10:00
Rhys van der Waerden
4748f92aa3 Merge pull request #923 from MadcapJake/master
Add Earl Grey support
2015-07-30 16:05:19 +10:00
Rhys van der Waerden
64dd6353a5 Merge pull request #919 from beppu/master
added LiveScript support for migrations correctly #903
2015-07-30 16:03:40 +10: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
f716624df5 Revert "added LiveScript stub template for seed:make"
This reverts commit 751b21409635001fce9ae2a38ade16a6135e8658.
2015-07-27 10:21:58 -07:00
John BEPPU
751b214096 added LiveScript stub template for seed:make 2015-07-23 20:17:53 -07:00
Vincent Schoettke
9a46d3633d Merge pull request #905 from helios1138/patch-2
fixed connection error handling for oracle dialect
2015-07-23 11:02:29 +02:00
Helios
f4e8f60b53 fixed connection error handling for oracle dialect 2015-07-23 11:16:39 +03:00
Rhys van der Waerden
556fa6c76a Merge pull request #896 from helios1138/patch-1
fixed connection error handling for oracle dialect
2015-07-21 13:38:41 +10:00
Rhys van der Waerden
b5c72e32ff Merge pull request #903 from beppu/master
add LiveScript support back in to knex migrations
2015-07-21 13:34:52 +10:00
John BEPPU
987b6d9f3f add LiveScript support back in to knex migrations 2015-07-20 10:40:47 -07:00
Rhys van der Waerden
39f6d845a4 Merge pull request #901 from jevakallio/feature/compose
Add builder as first parameter to `queryBuilder.modify`
2015-07-17 11:02:33 +10:00
Jani Evakallio
cb89930155 Add queryBuilder as first parameter to queryBuilder.modify 2015-07-16 15:49:30 +01:00
Rhys van der Waerden
b487e2cabe Merge pull request #881 from jevakallio/feature/compose
Improve query composability and support for utility functions
2015-07-17 00:19:26 +10:00
Jani Evakallio
299bbfa60b Rename compose to modify 2015-07-16 15:15:04 +01:00
Rhys van der Waerden
eff6a0434d Merge pull request #900 from taurencoder/master
re-create fk with ref.CONSTRAINT_NAME instead of ref.COLUMN_NAME
2015-07-16 17:08:05 +10:00
Daniel Qin
c57d7e3de9 re-create fk with ref.CONSTRAINT_NAME instead of ref.COLUMN_NAME 2015-07-16 14:40:04 +08:00
Rhys van der Waerden
0e61b93cf4 Merge pull request #898 from chris-olszewski/add_andOn_to_docs
Add mention of andOn to documentation
2015-07-15 10:55:29 +10:00