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
Fixed knex #1577 #1578
Fixed knex #1577 #1578
Conversation
Aslo corrected tests for primarykey
Update local version to current master
Oh, don't matter about 3 commits "Fix for installing from github". It do nothing to code. Have no idea why they are listed for this PR, I thought I've added them later. |
}).toSQL(); | ||
|
||
equal(1, tableSql.length); | ||
expect(tableSql[0].sql).to.equal('ALTER TABLE [users] DROP PRIMARY KEY'); | ||
expect(tableSql[0].sql).to.equal('ALTER TABLE [users] DROP CONSTRAINT [testconstraintname]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is DROP PRIMARY
not supported by MSSQL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, DROP CONSTRAINT only. See this article, section "Using Transact-SQL"
https://msdn.microsoft.com/en-us/library/ms190621.aspx
@statyan Looks good, I don't know much about MSSQL, but I'll cross reference these changes with the docs in future. Would you be able to squash these commits into one please? |
Ok,I'll try do it! |
@rhys-vdw when you click "merge pull request" button there is option to do squash merge if one likes. |
Also fix an issue with
dropPrimary
for MSSQL and fix test for primary key - now column test2 is set to notNullable. Without it primarykey test fails 'cause nullable column can't be set for primary key.