diff --git a/database/migrations/2018_05_17_031959_create_shop_coupon_table.php b/database/migrations/2018_05_17_031959_create_shop_coupon_table.php index 610863e..1b147f0 100644 --- a/database/migrations/2018_05_17_031959_create_shop_coupon_table.php +++ b/database/migrations/2018_05_17_031959_create_shop_coupon_table.php @@ -20,10 +20,10 @@ class CreateShopCouponTable extends Migration { $table->tinyInteger('send_type')->default(0)->comment('优惠券发放类型'); $table->decimal('min_amount', 10)->unsigned()->default(0.00)->comment('优惠使用最小金额'); $table->decimal('max_amount', 10)->unsigned()->default(0.00)->comment('优惠使用最大金额'); - $table->timestamp('send_start_date')->default(null)->comment('优惠券发放开始时间'); - $table->timestamp('send_end_date')->default(null)->comment('优惠券发放截止时间'); - $table->timestamp('use_start_date')->default(null)->comment('使用开始时间'); - $table->timestamp('use_end_date')->default(null)->comment('使用截止时间'); + $table->timestamp('send_start_date')->default('2018-01-01 00:00:00')->comment('优惠券发放开始时间'); + $table->timestamp('send_end_date')->default('2018-01-01 00:00:00')->comment('优惠券发放截止时间'); + $table->timestamp('use_start_date')->default('2018-01-01 00:00:00')->comment('使用开始时间'); + $table->timestamp('use_end_date')->default('2018-01-01 00:00:00')->comment('使用截止时间'); $table->decimal('min_goods_amount', 10)->unsigned()->default(0.00)->comment('优惠使用商品的最小金额'); $table->timestamps(); }); diff --git a/database/migrations/2018_05_17_031959_create_shop_order_express_table.php b/database/migrations/2018_05_17_031959_create_shop_order_express_table.php index 653fa34..c8b44fa 100644 --- a/database/migrations/2018_05_17_031959_create_shop_order_express_table.php +++ b/database/migrations/2018_05_17_031959_create_shop_order_express_table.php @@ -23,9 +23,9 @@ class CreateShopOrderExpressTable extends Migration { $table->string('traces', 2000)->default('')->comment('物流跟踪信息'); $table->tinyInteger('is_finish')->default(0); $table->integer('request_count')->nullable()->default(0)->comment('总查询次数'); - $table->timestamp('request_time')->nullable()->default(null)->comment('最近一次向第三方查询物流信息时间'); - $table->timestamp('add_time')->default(null)->comment('添加时间'); - $table->timestamp('update_time')->default(null)->comment('更新时间'); + $table->timestamp('request_time')->nullable()->default('2018-01-01 00:00:00')->comment('最近一次向第三方查询物流信息时间'); + $table->timestamp('add_time')->default('2018-01-01 00:00:00')->comment('添加时间'); + $table->timestamp('update_time')->default('2018-01-01 00:00:00')->comment('更新时间'); }); } diff --git a/database/migrations/2018_05_17_031959_create_shop_user_coupon_table.php b/database/migrations/2018_05_17_031959_create_shop_user_coupon_table.php index 70daf1e..58f72e1 100644 --- a/database/migrations/2018_05_17_031959_create_shop_user_coupon_table.php +++ b/database/migrations/2018_05_17_031959_create_shop_user_coupon_table.php @@ -18,8 +18,8 @@ class CreateShopUserCouponTable extends Migration { $table->integer('coupon_id')->default(0)->comment('优惠券id'); $table->string('coupon_number', 20)->default('')->comment('优惠劵数量'); $table->integer('uid')->unsigned()->default(0)->index('uid')->comment('用户uid'); - $table->timestamp('used_time')->default(null)->comment('最后使用时间'); - $table->timestamp('reward_time')->default(null)->comment('优惠领取时间'); + $table->timestamp('used_time')->default('2018-01-01 00:00:00')->comment('最后使用时间'); + $table->timestamp('reward_time')->default('2018-01-01 00:00:00')->comment('优惠领取时间'); $table->tinyInteger('use_status')->unsigned()->default(10)->comment('状态 10 可以使用 20已使用'); $table->integer('order_id')->unsigned()->default(0)->comment('订单id'); $table->timestamps();