add migration to catrt storage, update SCOUT
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
"laracraft-tech/laravel-date-scopes": "^2.0",
|
"laracraft-tech/laravel-date-scopes": "^2.0",
|
||||||
"laravel/framework": "^9.52",
|
"laravel/framework": "^9.52",
|
||||||
"laravel/helpers": "^1.7",
|
"laravel/helpers": "^1.7",
|
||||||
"laravel/scout": "^9.8",
|
"laravel/scout": "^10.8",
|
||||||
"laravel/tinker": "^2.8",
|
"laravel/tinker": "^2.8",
|
||||||
"laravel/ui": "^4.4",
|
"laravel/ui": "^4.4",
|
||||||
"laravelcollective/html": "^6.4",
|
"laravelcollective/html": "^6.4",
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class CreateCartStorageTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('shop_baskets', function (Blueprint $table) {
|
||||||
|
$table->string('id')->index();
|
||||||
|
$table->longText('cart_data');
|
||||||
|
$table->timestamps();
|
||||||
|
|
||||||
|
$table->primary('id');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('shop_baskets');
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user