Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type warnings #3839

Merged
merged 1 commit into from Jun 2, 2015
Merged

Type warnings #3839

merged 1 commit into from Jun 2, 2015

Conversation

BridgeAR
Copy link
Contributor

This is on top of #3836 and I wanted to get your feedback what you think about the implementation. So you only have to look at the "Initial commit" changes.

If someone uses a data type in a way that is not supported we'd now warn the user about it including what we do instead and presenting the link to the data types as they are in the current dialect.

@janmeier
Copy link
Member

I like this implementation very much! :) LGTM

@BridgeAR
Copy link
Contributor Author

This will close #2038


// MSSQL does not support any parameters for integer
if (this._length || this.options.length || this._unsigned || this._zerofill) {
this.warn('You used INTEGER with a attribute. This is not supported by MSSQL. Simple `INTEGER` will be used instead.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'an attribute'

@mickhansen
Copy link
Contributor

Looks great. Warnings are the way to go, since i don't personally thing we should ever remove support completely.

@BridgeAR
Copy link
Contributor Author

BridgeAR commented Jun 1, 2015

Rebased, fixed a couple typos and included more warnings. Depending on what you wish I'd say it's ready to merge. We could provide the additional functionality to include the lines later on.

@mickhansen
Copy link
Contributor

You're still mixing attribute and parameter in the warnings, would be nice to streamline them. Or provide some reasoning why they are different.

@mickhansen
Copy link
Contributor

General wording might be better with something like 'postgres does not support TEXT with size. Simple 'TEXT' will be used instead`

@BridgeAR
Copy link
Contributor Author

BridgeAR commented Jun 1, 2015

+1

@BridgeAR
Copy link
Contributor Author

BridgeAR commented Jun 1, 2015

Changed the comments and rebased

mickhansen added a commit that referenced this pull request Jun 2, 2015
@mickhansen mickhansen merged commit 720d4d8 into sequelize:master Jun 2, 2015
@diosney
Copy link
Contributor

diosney commented Aug 5, 2016

Please, see #6385

I really don't like this PR, there is a way to disable completely this messages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants