Set defaults for new fields
This commit is contained in:
parent
85cf468d97
commit
1e70afae3f
1 changed files with 3 additions and 3 deletions
|
|
@ -13,15 +13,15 @@ class AddDefaultRates extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::table('accounts', function ($table) {
|
||||
$table->decimal('task_rate', 12, 4);
|
||||
$table->decimal('task_rate', 12, 4)->default(0);
|
||||
});
|
||||
|
||||
Schema::table('clients', function ($table) {
|
||||
$table->decimal('task_rate', 12, 4);
|
||||
$table->decimal('task_rate', 12, 4)->default(0);
|
||||
});
|
||||
|
||||
Schema::table('projects', function ($table) {
|
||||
$table->decimal('task_rate', 12, 4);
|
||||
$table->decimal('task_rate', 12, 4)->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue