Completed
Push — master ( 1ed12b...1ef741 )
by Nicolas
07:28
created

...155289444_create_tag_tag_translations_table.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateTagTagTranslationsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('tag__tag_translations', function (Blueprint $table) {
0 ignored issues
show
The method create() does not exist on Illuminate\Support\Facades\Schema. Did you maybe mean createFreshMockInstance()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
17
            $table->engine = 'InnoDB';
18
            $table->increments('id');
19
            $table->string('slug');
20
            $table->string('name');
21
22
            $table->integer('tag_id')->unsigned();
23
            $table->string('locale')->index();
24
            $table->unique(['tag_id', 'locale']);
25
            $table->foreign('tag_id')->references('id')->on('tag__tags')->onDelete('cascade');
26
        });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     *
32
     * @return void
33
     */
34
    public function down()
35
    {
36
        Schema::drop('tag__tag_translations');
37
    }
38
}
39