From 1bc9bf9fe9a905c964f8de089d0326962fb26f72 Mon Sep 17 00:00:00 2001 From: ludo Date: Mon, 29 Jan 2024 23:45:55 +0100 Subject: [PATCH] add migration to catrt storage, update SCOUT --- composer.json | 2 +- ...01_29_218135_create_shop_baskets_table.php | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 database/migrations/shop/2024_01_29_218135_create_shop_baskets_table.php diff --git a/composer.json b/composer.json index 0cdf4c10..11a0df61 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "laracraft-tech/laravel-date-scopes": "^2.0", "laravel/framework": "^9.52", "laravel/helpers": "^1.7", - "laravel/scout": "^9.8", + "laravel/scout": "^10.8", "laravel/tinker": "^2.8", "laravel/ui": "^4.4", "laravelcollective/html": "^6.4", diff --git a/database/migrations/shop/2024_01_29_218135_create_shop_baskets_table.php b/database/migrations/shop/2024_01_29_218135_create_shop_baskets_table.php new file mode 100644 index 00000000..20f22a4b --- /dev/null +++ b/database/migrations/shop/2024_01_29_218135_create_shop_baskets_table.php @@ -0,0 +1,34 @@ +string('id')->index(); + $table->longText('cart_data'); + $table->timestamps(); + + $table->primary('id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('shop_baskets'); + } +} \ No newline at end of file