Skip to content

Fix replace option on CreateView migration #161

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

natk64
Copy link

@natk64 natk64 commented Aug 2, 2025

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Overrides the default Migrator.CreateView method with a copy that uses the correct syntax.

User Case Description

The correct syntax to replace a view in SQL Server is CREATE OR ALTER VIEW instead of CREATE OR REPLACE VIEW.
This is relevant when using CreateView with the Replace option set to true.

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.

1 participant