cockroachdb / cockroachdb/sequelize-cockroachdb

Running migration with umzug has some issues

Đang mở
#19 6 bình luận 0 reaction 1 người được giao Được @benesch nhận Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
55
Fork
18
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When running the following migration

```js
'use strict';

module.exports = {
up: (query, types) => {
query.addColumn('Users', 'lastName', types.STRING);
},
down: (query, types) => {
query.removeColumn('Users', 'lastName');
},
};
```
This error is thrown `SequelizeDatabaseError: database "public" does not exist`
the query that it attempted to ran was this:
```
Executing (default): ALTER TABLE "public"."Users" ADD COLUMN "lastName" VARCHAR(255);
```

After digging into the code a little bit I think i tracked this down to this line here in sequelize
https://github.com/sequelize/sequelize/blob/master/lib/dialects/abstract/query-generator.js#L26

You can see they call this function in the postgres query-generator dialect on this line
https://github.com/sequelize/sequelize/blob/master/lib/dialects/postgres/query-generator.js#L241

Versions:
Cockroachdb: CCL v1.1.0-rc.1 @ 2017/10/05 15:33:25 (go1.8.3)
sequelize-cockroachdb: 1.0.2
umzug: 2.0.1

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.