Add all files
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::dropIfExists('ext_product_page_builder');
|
||||
|
||||
Schema::create('ext_product_page_builder', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->json('hero_section')->nullable();
|
||||
$table->json('features')->nullable();
|
||||
$table->json('seo')->nullable();
|
||||
$table->json('game_preview')->nullable();
|
||||
$table->json('game_panel')->nullable();
|
||||
$table->json('faqs')->nullable();
|
||||
$table->foreignId('category_id')->nullable()->constrained('categories')->onDelete('set null');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('ext_product_page_builder');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user