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

table.DropDefaultConstraint not working on SQL Server #5

Open
seizethedave opened this issue Sep 14, 2012 · 0 comments
Open

table.DropDefaultConstraint not working on SQL Server #5

seizethedave opened this issue Sep 14, 2012 · 0 comments

Comments

@seizethedave
Copy link

Doesn't seem to be a part of T-SQL's dialect. (SQL Server 2005.) (And otherwise, it's passing the constraint's name where the column name should go.)

Code:

var recipients = db.AlterTable("NotificationRecipients");
recipients.DropDefaultConstraint("NotificationTypeDefault");

Shell output:

D:\dev\Migrations\bin\Debug>NMigrations.Shell /assembly Migrations.dll /cs "Data Source=.\SQLEXPRESS; Integrated Security=True; Initial Catalog=asdf1234"
NMigrations v1.0.0.5, (c) 2010 Sebastian Klose

20120914150658 UP...
ALTER TABLE [NotificationRecipients] ALTER COLUMN [NotificationTypeDefault] DROP DEFAULT;
Incorrect syntax near the keyword 'DEFAULT'.
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

No branches or pull requests

1 participant