Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | public function up() |
||
9 | { |
||
10 | Schema::create('tagging_tagged', function (Blueprint $table) { |
||
11 | $table->increments('id'); |
||
12 | if (config('tagging.primary_keys_type') == 'string') { |
||
13 | $table->string('taggable_id', 36)->index(); |
||
14 | } else { |
||
15 | $table->integer('taggable_id')->unsigned()->index(); |
||
16 | } |
||
17 | $table->string('taggable_type', 125)->index(); |
||
18 | $table->string('tag_name', 125); |
||
19 | $table->string('tag_slug', 125)->index(); |
||
28 |