| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class CreateBlogEtcUploadedPhotosTable extends Migration |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Create the DB table for Blog Etc photos. |
||
| 14 | */ |
||
| 15 | public function up(): void |
||
| 16 | { |
||
| 17 | Schema::create('blog_etc_uploaded_photos', static function (Blueprint $table) { |
||
| 18 | $table->increments('id'); |
||
| 19 | $table->text('uploaded_images')->nullable(); |
||
| 20 | $table->string('image_title')->nullable(); |
||
| 21 | $table->string('source')->default('unknown'); |
||
| 22 | $table->unsignedInteger('uploader_id')->nullable()->index(); |
||
| 23 | |||
| 24 | $table->timestamps(); |
||
| 25 | }); |
||
| 26 | |||
| 27 | Schema::table('blog_etc_posts', static function (Blueprint $table) { |
||
| 28 | $table->string('seo_title')->nullable(); |
||
| 29 | }); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Reverse the migrations. |
||
| 34 | */ |
||
| 35 | public function down(): void |
||
| 41 | }); |
||
| 42 | } |
||
| 44 |