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
Merged

[5.8] Add Postgres support for collation() on columns #29213

merged 1 commit into from
Jul 18, 2019

Conversation

danmichaelo
Copy link
Contributor

@danmichaelo danmichaelo 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
@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 add-postgres-collation branch July 21, 2019 14:04
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