db-migrate / db-migrate/node-db-migrate

Rename column loses all column spec information except type

Open
#115 1 comment 0 reactions 0 assignees View on GitHub
documentation
Dominant language
JavaScript
Stars
2.3k
Forks
361
PR merge metrics
No merged PRs in 30d

Description

https://github.com/nearinfinity/node-db-migrate/blob/master/lib/driver/mysql.js#L220-L224

It only selects the type from information schema. Information like nullable or default value are lost. I think the documentation should at least make it obvious to end users so that they know they need to go in after and reset the column spec.
##

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1257672-rename-column-loses-all-column-spec-information-except-type?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F73887&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.