Skip to content

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