update migration

creating table and dropping it can be based on `table` item of cart config
This commit is contained in:
Sobhan Attar
2017-06-25 16:43:25 +04:30
committed by GitHub
parent a0d2905d7a
commit 7ec5eb2b8a

View File

@@ -11,7 +11,7 @@ class CreateShoppingcartTable extends Migration
*/
public function up()
{
Schema::create('shoppingcart', function (Blueprint $table) {
Schema::create(config('cart.database.table'), function (Blueprint $table) {
$table->string('identifier');
$table->string('instance');
$table->longText('content');
@@ -25,6 +25,6 @@ class CreateShoppingcartTable extends Migration
*/
public function down()
{
Schema::drop('shoppingcart');
Schema::drop(config('cart.database.table'));
}
}