|
@@ -0,0 +1,35 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use Illuminate\Support\Facades\Schema;
|
|
|
+use Illuminate\Database\Schema\Blueprint;
|
|
|
+use Illuminate\Database\Migrations\Migration;
|
|
|
+
|
|
|
+class AddBjcityIdConfigProvinceTable extends Migration
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * Run the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function up()
|
|
|
+ {
|
|
|
+ Schema::table('config_province', function (Blueprint $table) {
|
|
|
+ $table->renameColumn('name', 'area_name');
|
|
|
+ $table->string('area_code',50)->nullable()->comment('地区编码');
|
|
|
+ $table->string('city_code',50)->comment('城市编码');
|
|
|
+ $table->string('center',50)->comment('城市中心点(即:经纬度坐标)');
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Reverse the migrations.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function down()
|
|
|
+ {
|
|
|
+ Schema::table('config_province', function (Blueprint $table) {
|
|
|
+ $table->dropColumn('area_name','area_code','city_code','center');
|
|
|
+ });
|
|
|
+ }
|
|
|
+}
|