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

mssqldef: add some features to default #134

Merged
merged 2 commits into from
Jul 8, 2021

Conversation

ytakaya
Copy link

@ytakaya ytakaya commented Jul 8, 2021

I've made the following modifications.

  • When the default constraint is changed, adding default and dropping default will be executed
  • use getdate() as default constraint
  • enclose the value of the default constraint in parentheses
    • Inside mssql, default constraint is defined in parentheses, so I made sure that the syntax would work.
    • the numeric value is enclosed in double parenthesis.
    • other values are enclosed in single parentheses.

@k0kubun k0kubun merged commit 68a0487 into sqldef:master Jul 8, 2021
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.

2 participants