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] Added SET datatype on MySQL Grammar #28171

Merged
merged 2 commits into from
Apr 11, 2019
Merged

[5.8] Added SET datatype on MySQL Grammar #28171

merged 2 commits into from
Apr 11, 2019

Conversation

jpedroh
Copy link
Contributor

@jpedroh jpedroh commented Apr 10, 2019

This pull request adds the MySQL's SET type into the migrations builder. It allows you to make:

    public function up()
    {
        Schema::create('table_name', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->set("field_name", [ "Possible", "Values" ]);
            $table->timestamps();
        });
    }

That will create a table with a field_name column with the SET dataType. Available only on MySQL.

@jpedroh jpedroh changed the title Added SET datatype on MySQL Grammar [5.8] Added SET datatype on MySQL Grammar Apr 10, 2019
@taylorotwell taylorotwell merged commit 46884ad into laravel:5.8 Apr 11, 2019
@huangdijia
Copy link
Contributor

before this, I use https://github.com/huangdijia/laravel-blueprint-extend-set for support set type

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.

4 participants