mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Removed required custom field from seeder
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
aab7eb4a85
commit
a2ba39c837
|
@ -105,13 +105,4 @@ class CustomFieldFactory extends Factory
|
|||
});
|
||||
}
|
||||
|
||||
public function testRequired()
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'name' => 'Test Required',
|
||||
'help_text' => 'This is a sample required field.',
|
||||
];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ class CustomFieldSeeder extends Seeder
|
|||
CustomField::factory()->count(1)->macAddress()->create();
|
||||
CustomField::factory()->count(1)->testEncrypted()->create();
|
||||
CustomField::factory()->count(1)->testCheckbox()->create();
|
||||
CustomField::factory()->count(1)->testRequired()->create();
|
||||
|
||||
|
||||
DB::table('custom_field_custom_fieldset')->insert([
|
||||
|
@ -97,13 +96,6 @@ class CustomFieldSeeder extends Seeder
|
|||
'required' => 0,
|
||||
],
|
||||
|
||||
[
|
||||
'custom_field_id' => '8',
|
||||
'custom_fieldset_id' => '1',
|
||||
'order' => 0,
|
||||
'required' => 1,
|
||||
],
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue