xielin 5 rokov pred
rodič
commit
a428b4ed45

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