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