| xqd
@@ -17,7 +17,7 @@ class CreateOrdersTable extends Migration
|
|
|
*/
|
|
|
public function up()
|
|
|
{
|
|
|
- Schema::create('orders', function (Blueprint $table) {
|
|
|
+ Schema::create('order_info', function (Blueprint $table) {
|
|
|
$table->increments('id');
|
|
|
$table->string('code', 50)->comment('订单流水号');
|
|
|
$table->string('transaction_id', 255)->nullable()->comment('交易流水号');
|
| xqd
@@ -33,7 +33,7 @@ class CreateOrdersTable extends Migration
|
|
|
|
|
|
$table->index('code', 'idx_code');
|
|
|
$table->index('transaction_id', 'idx_tid');
|
|
|
- $table->index(['user_type', 'user_id'], 'idx_user');
|
|
|
+ $table->index('user_id', 'idx_user');
|
|
|
|
|
|
|
|
|
|