add migration to catrt storage, update SCOUT

This commit is contained in:
ludo
2024-01-29 23:45:55 +01:00
parent 53ad10eefa
commit 1bc9bf9fe9
2 changed files with 35 additions and 1 deletions

View File

@@ -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",

View File

@@ -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');
}
}