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:
Gary Sharp
2013-11-19 14:19:41 +11:00
parent d1007266c9
commit 9b34abfa29
+9 -1
View File
@@ -60,7 +60,15 @@ namespace Disco.Data.Repository
{
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)