Skip to content

Commit b6d0c8c

Browse files
committed
独立id
1 parent 70e3408 commit b6d0c8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Databases/migrations/2017_09_01_024032_omnipay_orders_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class OmnipayOrdersTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('omnipay_orders', function (Blueprint $table) {
17-
$table->string('id') ->comment('订单编号')->unique();
17+
$table->increments('id')->unsigned();
18+
$table->string('order_id') ->comment('订单编号')->unique();
1819
$table->bigInteger('uid') ->comment('用户ID')->default(0)->unsigned();
1920
$table->string('name',275) ->comment('订单名称');
2021
$table->decimal('fee',11, 2) ->comment('订单金额')->unsigned()->default(0);

0 commit comments

Comments
 (0)