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('维度');
         });