xielin 5 年 前
コミット
a428b4ed45
共有1 個のファイルを変更した1 個の追加2 個の削除を含む
  1. 1 2
      database/migrations/2019_11_04_023522_add_column_lat_and_long_to_post.php

+ 1 - 2
database/migrations/2019_11_04_023522_add_column_lat_and_long_to_post.php

@@ -14,13 +14,12 @@ class AddColumnLatAndLongToPost extends Migration
     public function up()
     {
         Schema::table('post', function (Blueprint $table) {
-            //
             $table->decimal('lng',12,8)
                 ->after('location')
                 ->default(0)
                 ->comment('经度');
             $table->decimal('lat',12,8)
-                ->after('long')
+                ->after('lng')
                 ->default(0)
                 ->comment('维度');
         });