Bug Fix: Default DeviceProfile DistributionType
The DistributionType is required but was not specified (null) in the Database Seed (as a result of the move to an enum).
This commit is contained in:
@@ -60,7 +60,15 @@ namespace Disco.Data.Repository
|
|||||||
{
|
{
|
||||||
if (Database.DeviceProfiles.Count() == 0)
|
if (Database.DeviceProfiles.Count() == 0)
|
||||||
{
|
{
|
||||||
Database.DeviceProfiles.Add(new DeviceProfile { ShortName = "WS", Name = "Default", Description = "Initial Default Workstation Profile", ComputerNameTemplate = "DeviceProfile.ShortName + ''-'' + SerialNumber" });
|
Database.DeviceProfiles.Add(
|
||||||
|
new DeviceProfile
|
||||||
|
{
|
||||||
|
ShortName = "WS",
|
||||||
|
Name = "Default",
|
||||||
|
Description = "Initial Default Workstation Profile",
|
||||||
|
ComputerNameTemplate = "DeviceProfile.ShortName + ''-'' + SerialNumber",
|
||||||
|
DistributionType = DeviceProfile.DistributionTypes.OneToMany
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static void SeedJobSubTypes(this DiscoDataContext Database)
|
public static void SeedJobSubTypes(this DiscoDataContext Database)
|
||||||
|
|||||||
Reference in New Issue
Block a user