Skip to content

Commit 362c859

Browse files
committed
fix(index): fix wrong concatenation on advanced indexes
Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
1 parent 61f3acc commit 362c859

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="2.0.1"></a>
2+
## [2.0.1](https://github.com/db-migrate/cockroachdb/compare/v2.0.0...v2.0.1) (2018-03-31)
3+
4+
5+
### Bug Fixes
6+
7+
* **index:** fix missing quotes ([ad3ccd9](https://github.com/db-migrate/cockroachdb/commit/ad3ccd9))
8+
9+
10+
111
<a name="2.0.0"></a>
212
# [2.0.0](https://github.com/db-migrate/cockroachdb/compare/v1.4.3...v2.0.0) (2018-03-31)
313

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,10 @@ var CockroachDriver = Base.extend({
347347
var columnString = columns
348348
.map(column => {
349349
if (typeof column === "object") {
350-
return this.escapeDDL(column.name) + (column.DESC === true)
351-
? " DESC"
352-
: " ASC";
350+
return (
351+
this.escapeDDL(column.name) +
352+
(column.DESC === true ? " DESC" : " ASC")
353+
);
353354
} else {
354355
return this.escapeDDL(column);
355356
}

0 commit comments

Comments
 (0)