db-migrate / db-migrate/db-migrate-base

Unknown types are uppercased without recourse

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7
Forks
16
PR merge metrics
No merged PRs in 30d

Description

In our migrations using the `db.createTable` API, if we specify an unsupported type, it becomes uppercased (see [here](https://github.com/db-migrate/db-migrate-base/blob/master/index.js#L91)). This is not desirable; in some cases the type is a list of enum values (using the MySQL db-migrate driver). While it "works", it means that the values returned for the column are uppercased, but we'd prefer them to be in the case given (lowercase), since MySQL will return the enum value in whichever case it was when the table was defined.

If you want the unsupported type to be uppercased, please parse for quoted strings and preserve the content of each quoted string.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.