You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
Executing (default): ALTER TABLE [sms_test].[accounts] ALTER COLUMN [commodity_classification] BIT NOT NULL DEFAULT 0;
✖ Incorrect syntax near the keyword 'DEFAULT'.
Activity
tayyabferozi commentedon Sep 11, 2021
How did you fix the issue? It seems like they didn't look at it and its been approximately a year
github-actions commentedon Oct 28, 2021
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
timhaak commentedon Mar 30, 2022
Bug is still there unfortunately
Executing (default): ALTER TABLE [sms_test].[accounts] ALTER COLUMN [commodity_classification] BIT NOT NULL DEFAULT 0;
✖ Incorrect syntax near the keyword 'DEFAULT'.
commodityClassification: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: false,
},
avalencia-vso commentedon Aug 9, 2022
I ran into the same issue. Can the official documentation at least be updated to say "defaultValue" does not work with MSSQL?
gsbenjamin commentedon Aug 30, 2022
I have this same issue with the wrong SQL statement generated by sequeilize when adding a defaultvalue for an integer field in Microsoft SQL Server