|
|
@@ -17,8 +17,12 @@ class AddColumnOwnerPriceModelStorage extends Migration
|
|
|
Schema::table('owner_storage_price_models', function (Blueprint $table) {
|
|
|
$table->bigInteger("time_unit_id")->comment("计时单位");
|
|
|
});
|
|
|
- DB::statement("ALTER TABLE features MODIFY COLUMN type enum ('商品名称','订单类型','承运商','店铺类型','订单数') default null");
|
|
|
- DB::statement("ALTER TABLE features MODIFY COLUMN logic enum ('包含','不包含','等于','大于','大于等于','小于','小于等于') default null");
|
|
|
+ Schema::table("owner_price_model_operations",function (Blueprint $table){
|
|
|
+ $table->decimal("discount_count")->nullable()->comment("减免数");
|
|
|
+ });
|
|
|
+ Schema::table("owner_price_model_operation_items",function (Blueprint $table){
|
|
|
+ $table->decimal("discount_price")->nullable()->comment("减免单价");
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -31,7 +35,11 @@ class AddColumnOwnerPriceModelStorage extends Migration
|
|
|
Schema::table('owner_storage_price_models', function (Blueprint $table) {
|
|
|
$table->dropColumn("time_unit_id");
|
|
|
});
|
|
|
- DB::statement("ALTER TABLE features MODIFY COLUMN type enum ('商品名称','订单类型','承运商','店铺类型') default null");
|
|
|
- DB::statement("ALTER TABLE features MODIFY COLUMN logic enum ('包含','不包含','等于') default null");
|
|
|
+ Schema::table("owner_price_model_operations",function (Blueprint $table){
|
|
|
+ $table->dropColumn("discount_count");
|
|
|
+ });
|
|
|
+ Schema::table("owner_price_model_operation_items",function (Blueprint $table){
|
|
|
+ $table->dropColumn("discount_price");
|
|
|
+ });
|
|
|
}
|
|
|
}
|