添加 默认值
This commit is contained in:
parent
08f2fc2306
commit
c6d943291a
@ -14,7 +14,7 @@
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->decimal('balance')->change();
|
||||
$table->decimal('balance')->default(0)->change();
|
||||
});
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ public function up(): void
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->decimal('balance', 10)->change();
|
||||
$table->decimal('balance', 10)->default(0)->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user