Removed required custom field from seeder

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-10-26 17:57:05 +01:00
parent aab7eb4a85
commit a2ba39c837
2 changed files with 0 additions and 17 deletions

View file

@ -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.',
];
});
}
}

View file

@ -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,
],
]);
}
}