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

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