Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[5.7] Add computed support to SQL Server schema grammar #27346
+79
−2
Conversation
GrahamCampbell
closed this
Jan 29, 2019
GrahamCampbell
reopened this
Jan 29, 2019
GrahamCampbell
changed the title
Add computed support to SQL Server schema grammar
[5.7] Add computed support to SQL Server schema grammar
Jan 29, 2019
This comment has been minimized.
This comment has been minimized.
Sorry, wrong button! |
This comment has been minimized.
This comment has been minimized.
Tests should actually work out now |
This comment has been minimized.
This comment has been minimized.
IMO, I would prefer |
staudenmeir
reviewed
Jan 29, 2019
jlsjonas
added some commits
Jan 29, 2019
This comment has been minimized.
This comment has been minimized.
(cleaned up commits) |
jlsjonas
force-pushed the
jlsjonas:patch-2
branch
from
72641c0
to
5443dca
Jan 30, 2019
This comment has been minimized.
This comment has been minimized.
Excellent, |
taylorotwell
merged commit 5443dca
into
laravel:5.7
Jan 30, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
jlsjonas commentedJan 29, 2019
SQL Server also supports computed columns (Azure & 2016+), but as a type; not a modifier.
inspired by #13430 but for SQL Server
Sadly enough SQL Server defines this instead of a data type, so I couldn't re-use the existing methods.
Instead, a "virtual" type was introduced, with a "persisted" modifier; reflecting the mysql-only virtualAs & storedAs modifiers respectively.