Code Duplication    Length = 8-12 lines in 2 locations

src/Modules/Core/Database/Migrations/2018_08_08_100000_create_telescope_entries_table.php 1 location

@@ 58-69 (lines=12) @@
55
            $table->index(['type', 'should_display_on_index']);
56
        });
57
58
        $this->schema->create('telescope_entries_tags', function (Blueprint $table) {
59
            $table->uuid('entry_uuid');
60
            $table->string('tag');
61
62
            $table->index(['entry_uuid', 'tag']);
63
            $table->index('tag');
64
65
            $table->foreign('entry_uuid')
66
                  ->references('uuid')
67
                  ->on('telescope_entries')
68
                  ->onDelete('cascade');
69
        });
70
71
        $this->schema->create('telescope_monitoring', function (Blueprint $table) {
72
            $table->string('tag');

src/Modules/OauthClients/Database/Migrations/2016_06_01_000003_create_oauth_refresh_tokens_table.php 1 location

@@ 16-23 (lines=8) @@
13
     */
14
    public function up()
15
    {
16
        Schema::create('oauth_refresh_tokens', function (Blueprint $table) {
17
            $table->string('id', 100)->primary();
18
            $table->string('access_token_id', 100);
19
            $table->boolean('revoked');
20
            $table->dateTime('expires_at')->nullable();
21
22
            $table->foreign('access_token_id')->references('id')->on('oauth_access_tokens');
23
        });
24
    }
25
26
    /**