| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CreateMediaTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | */ |
||
| 12 | public function up() |
||
| 13 | { |
||
| 14 | Schema::create('media', function (Blueprint $table) { |
||
| 15 | $table->bigIncrements('id'); |
||
| 16 | $table->uuid('uuid')->default('-'); |
||
| 17 | $table->morphs('model'); |
||
| 18 | $table->string('collection_name'); |
||
| 19 | $table->string('name'); |
||
| 20 | $table->string('file_name'); |
||
| 21 | $table->string('mime_type')->nullable(); |
||
| 22 | $table->string('disk'); |
||
| 23 | $table->unsignedBigInteger('size'); |
||
| 24 | $table->json('manipulations'); |
||
| 25 | $table->json('custom_properties'); |
||
| 26 | $table->json('responsive_images'); |
||
| 27 | $table->unsignedInteger('order_column')->nullable(); |
||
| 28 | $table->nullableTimestamps(); |
||
| 29 | }); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Reverse the migrations. |
||
| 34 | */ |
||
| 35 | public function down() |
||
| 38 | } |
||
| 39 | } |
||
| 40 |