Differential D3608 Diff 10490 src/database/migrations/2022_03_02_100000_create_filesystem_tables.php
Changeset View
Changeset View
Standalone View
Standalone View
src/database/migrations/2022_03_02_100000_create_filesystem_tables.php
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public function up(): void | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Reverse the migrations. | * Reverse the migrations. | ||||
*/ | */ | ||||
public function down(): void | public function down(): void | ||||
{ | { | ||||
if (\App\Sku::where('title', 'files')->first()) { | |||||
\App\Sku::where('title', 'files')->delete(); | \App\Sku::where('title', 'files')->delete(); | ||||
} | |||||
Schema::dropIfExists('fs_properties'); | Schema::dropIfExists('fs_properties'); | ||||
Schema::dropIfExists('fs_chunks'); | Schema::dropIfExists('fs_chunks'); | ||||
Schema::dropIfExists('fs_items'); | Schema::dropIfExists('fs_items'); | ||||
} | } | ||||
}; | }; |