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.7] Support JSON UPDATE queries on PostgreSQL #25797

Merged
merged 1 commit into from
Sep 27, 2018
Merged

[5.7] Support JSON UPDATE queries on PostgreSQL #25797

merged 1 commit into from
Sep 27, 2018

Conversation

staudenmeir
Copy link
Contributor

@staudenmeir staudenmeir commented Sep 27, 2018

Adds support for JSON UPDATE queries on PostgreSQL 9.5+:

DB::table('users')->update(['options->language' => 'en']);
DB::table('users')->update(['options->languages' => ['en']]);
DB::table('users')->update(['options->language' => DB::raw("'null'")]);

Fixes #23271.

@taylorotwell taylorotwell merged commit ddf6cae into laravel:5.7 Sep 27, 2018
@staudenmeir staudenmeir deleted the json-update-postgresql branch September 27, 2018 13:51
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