| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('routes', function (Blueprint $table) { |
||
| 17 | $table->bigIncrements('id'); |
||
| 18 | $table->string('url', 500)->unique()->index(); |
||
| 19 | $table->nullableMorphs('routable'); |
||
| 20 | $table->unsignedInteger('canonical_id')->nullable() |
||
| 21 | ->references('id')->on('routes'); |
||
| 22 | $table->unsignedInteger('redirect_id')->nullable() |
||
| 23 | ->references('id')->on('routes')->onDelete('cascade'); |
||
| 24 | $table->softDeletes(); |
||
| 25 | $table->timestamps(); |
||
| 26 | }); |
||
| 39 |