移除补货日志补唯一索引
parent
9ea2f04ac2
commit
5a269d74e9
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class DelDealerUserIdOrderIdUniqueToDealerPurchaseLogsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('dealer_purchase_logs', function (Blueprint $table) {
|
||||
$table->dropUnique(['user_id', 'order_id']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('dealer_purchase_logs', function (Blueprint $table) {
|
||||
$table->unique(['user_id', 'order_id']);
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue