fix: make coupon_limitperiod nullable
This commit is contained in:
parent
c08c0e8fcd
commit
2485d0aa97
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ class FixCouponNullableFields extends Migration
|
|||
// Change from 0000-00-00 00:00:00 to current_timestamp. No need to revert.
|
||||
$table->timestamp('coupon_createdate')->useCurrent()->change();
|
||||
$table->integer('coupon_limitquantity')->nullable()->default(null)->change();
|
||||
$table->integer('coupon_limitperiod')->nullable()->default(null)->change();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -30,6 +31,7 @@ class FixCouponNullableFields extends Migration
|
|||
{
|
||||
Schema::table('coupon', function (Blueprint $table) {
|
||||
$table->integer('coupon_limitquantity')->nullable(false)->default(1)->change();
|
||||
$table->integer('coupon_limitperiod')->nullable(false)->default(0)->change();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue