Card + Products
This commit is contained in:
parent
5ff57a21a7
commit
c129a44383
38 changed files with 4489 additions and 1789 deletions
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateShoppingcartTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create(config('cart.database.table'), function (Blueprint $table) {
|
||||
$table->string('identifier');
|
||||
$table->string('instance');
|
||||
$table->longText('content');
|
||||
$table->nullableTimestamps();
|
||||
|
||||
$table->primary(['identifier', 'instance']);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop(config('cart.database.table'));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue