|
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
-class AddBjcityConfigProvinceTable extends Migration
|
|
|
+class UpdateConfigPickupNodeTable extends Migration
|
|
|
{
|
|
|
/**
|
|
|
* Run the migrations.
|
|
@@ -13,8 +13,8 @@ class AddBjcityConfigProvinceTable extends Migration
|
|
|
*/
|
|
|
public function up()
|
|
|
{
|
|
|
- Schema::table('config_province', function (Blueprint $table) {
|
|
|
- $table->renameColumn('id', 'bjcity_id',20)->comment('地区id');
|
|
|
+ Schema::table('config_pickup_node', function (Blueprint $table) {
|
|
|
+ $table->integer('distance')->comment('距离');
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -25,8 +25,8 @@ class AddBjcityConfigProvinceTable extends Migration
|
|
|
*/
|
|
|
public function down()
|
|
|
{
|
|
|
- Schema::table('config_province', function (Blueprint $table) {
|
|
|
- $table->dropColumn('bjcity_id');
|
|
|
+ Schema::table('config_pickup_node', function (Blueprint $table) {
|
|
|
+ $table->dropColumn(['distance']);
|
|
|
});
|
|
|
}
|
|
|
}
|