| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CreateShortsTable extends Migration |
||
| 8 | { |
||
| 9 | use Migrationable; |
||
| 10 | |||
| 11 | public function up() |
||
| 12 | { |
||
| 13 | $this->createTable(static function (Blueprint $table) { |
||
| 14 | $table->bigIncrements('id'); |
||
| 15 | |||
| 16 | $table->string('key')->nullable()->index(); |
||
| 17 | $table->string('host'); |
||
| 18 | $table->text('url'); |
||
| 19 | |||
| 20 | $table->unsignedBigInteger('visited')->default(0); |
||
| 21 | |||
| 22 | $table->timestamps(); |
||
| 23 | }); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function down() |
||
| 29 | } |
||
| 30 | } |
||
| 31 |