mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 15:41:24 +00:00
update migration
creating table and dropping it can be based on `table` item of cart config
This commit is contained in:
@@ -11,7 +11,7 @@ class CreateShoppingcartTable extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('shoppingcart', function (Blueprint $table) {
|
Schema::create(config('cart.database.table'), function (Blueprint $table) {
|
||||||
$table->string('identifier');
|
$table->string('identifier');
|
||||||
$table->string('instance');
|
$table->string('instance');
|
||||||
$table->longText('content');
|
$table->longText('content');
|
||||||
@@ -25,6 +25,6 @@ class CreateShoppingcartTable extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::drop('shoppingcart');
|
Schema::drop(config('cart.database.table'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user