Create 2022_02_03_000000_remove_content_from_shoppingcart_table.php

This commit is contained in:
Patrick
2022-02-03 00:32:37 +01:00
committed by GitHub
parent bc91ea1976
commit 679578d4e2

View File

@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RemoveContentFromShoppingcartTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table(config('cart.database.table'), function (Blueprint $table) {
$table->dropColumn('content');
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::table(config('cart.database.table'), function (Blueprint $table) {
$table->longText('content');
});
}