diff --git a/database/migrations/2021_12_26_111435_create_tables.php b/database/migrations/2021_12_26_111435_create_tables.php index c612879c..900698b2 100644 --- a/database/migrations/2021_12_26_111435_create_tables.php +++ b/database/migrations/2021_12_26_111435_create_tables.php @@ -84,7 +84,7 @@ class CreateTables extends Migration Schema::create('product_skus', function (Blueprint $table) { $table->id()->startingValue(100_000); $table->unsignedBigInteger('product_id'); - $table->string('variants')->nullable(); + $table->json('variants')->nullable(); $table->integer('position')->default(0); $table->string('image')->default(''); $table->string('model')->default('');