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.8] Add Postgres support for collation() on columns #29213

Merged
merged 1 commit into from Jul 18, 2019

Conversation

@danmichaelo
Copy link
Contributor

commented Jul 18, 2019

The MySQL and SQL Server schema builders already had support for setting collation on columns using the collation() methods. This PR adds Postgres support for the same functionality. Postgres have had support for collated columns since version 9.1 released in 2011.

Schema::create('users', function (Blueprint $table) {
    $table->string('name')->collation('nb_NO.utf8');
});

I think could go safely onto 5.8?

@taylorotwell taylorotwell merged commit 99522fc into laravel:5.8 Jul 18, 2019

2 checks passed

continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@GrahamCampbell GrahamCampbell changed the title Add Postgres support for collation() on columns [5.8] Add Postgres support for collation() on columns Jul 19, 2019

@danmichaelo danmichaelo deleted the danmichaelo:add-postgres-collation branch Jul 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.