integer('user_uid')->nullable()->default(0)->comment('yz_user.id'); } else { $merchants = DB::table('yz_merchant')->where('user_uid', 0)->get(); if (!$merchants->isEmpty()) { foreach ($merchants as $merchant) { $user = WeiQingUsers::register('merchant_user_'.$merchant['id'], 'merchant_user_'.$merchant['id']); DB::table('yz_merchant')->where('id', $merchant['id'])->update(['user_uid' => $user['user_uid']]); } } } });*/ } /** * Reverse the migrations. * * @return void */ public function down() { } }