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