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

[5.5] Make sure sql for virtual columns is added after the unsigned modifier #21441

Merged
merged 3 commits into from Sep 28, 2017
Merged

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Sep 28, 2017

In reference to #21421

  • $table->integer('total')->unsigned()->virtualAs('a + b + c');

is converted to :

  • total int as (a + b + c) unsigned

which is invalid mysql grammar

It should be converted to

  • total int unsigned as (a + b + c)

@taylorotwell taylorotwell merged commit 4362e61 into laravel:5.5 Sep 28, 2017
edmandiesamonte added a commit to edmandiesamonte/framework that referenced this pull request Oct 2, 2017
* upstream/5.5: (84 commits)
  Correct docBlock depenency on syncWithoutDetaching (laravel#21478)
  update v5.5 changelog
  allow to specify the queue while scheduling of queued jobs (laravel#21473)
  [5.5] Clear CountQuery "select" bindings since we're overriding the columns anyway (laravel#21468)
  add interface
  access pivot on resource
  update v5.5 changelog
  extract trait
  Fix docblock in Route (laravel#21454)
  fix test
  formatting
  Fix Relation::morphMap() merge (issue laravel#21457). (laravel#21458)
  extract AnonymousResourceCollection into class to allow serialization
  revert relationship limits
  Fix spelling of 'optionally'
  [5.5] Fix Collection::contains() when the found value is null (laravel#21442)
  Allow passing a callback to "with" (laravel#21445)
  [5.5] Add relation and model attributes in RelationNotFoundException (laravel#21426)
  [5.5] Make sure sql for virtual columns is added after the unsigned modifier (laravel#21441)
  vendor:publish options alphabetized (laravel#21412)
  ...
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.

None yet

2 participants