Skip to content

Commit

Permalink
update migration
Browse files Browse the repository at this point in the history
creating table and dropping it can be based on `table` item of cart config
  • Loading branch information
sobhanatar authored Jun 25, 2017
1 parent a0d2905 commit 7ec5eb2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -25,6 +25,6 @@ public function up()
*/
public function down()
{
Schema::drop('shoppingcart');
Schema::drop(config('cart.database.table'));
}
}

0 comments on commit 7ec5eb2

Please sign in to comment.