From 2c6aad11a84103d4aa6b12bdf426e59fa839f819 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Sun, 31 Oct 2021 21:49:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- migrations/2021_10_31_212234_create_talk_records_location.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/2021_10_31_212234_create_talk_records_location.php b/migrations/2021_10_31_212234_create_talk_records_location.php index b0dad26..25781bc 100644 --- a/migrations/2021_10_31_212234_create_talk_records_location.php +++ b/migrations/2021_10_31_212234_create_talk_records_location.php @@ -15,8 +15,8 @@ class CreateTalkRecordsLocation extends Migration $table->unsignedInteger('id', true)->comment('自增ID'); $table->unsignedInteger('record_id')->default(0)->comment('消息记录ID'); $table->unsignedInteger('user_id')->default(0)->comment('用户ID'); - $table->decimal('longitude', 11, 6)->default('0.000000')->comment('经度'); - $table->decimal('latitude', 11, 6)->default('0.000000')->comment('纬度'); + $table->string('longitude', 20)->default('')->comment('经度'); + $table->string('latitude', 20)->default('')->comment('纬度'); $table->dateTime('created_at')->nullable(true)->comment('创建时间'); $table->charset = 'utf8';