27c21175d7
Migrate much of BI to Services. Added Wireless Profile Provider plugin feature. Added Certificate Authority Provider plugin feature. Modified Certificate Provider plugin feature. Database migration v17, for Device Profiles. Enrolment Client Updated to support CA Certificates, Wireless Profiles and Hardware Info. New Client Enrolment Protocol to support new features. Plugin Manifest Generator added to main solution. Improved AD search performance.
28 lines
1.3 KiB
C#
28 lines
1.3 KiB
C#
namespace Disco.Data.Migrations
|
|
{
|
|
using System;
|
|
using System.Data.Entity.Migrations;
|
|
|
|
public partial class DBv17 : DbMigration
|
|
{
|
|
public override void Up()
|
|
{
|
|
RenameColumn("dbo.DeviceProfiles", "CertificateProviderId", "CertificateProviders");
|
|
AlterColumn("dbo.DeviceProfiles", "CertificateProviders", c => c.String(maxLength: 200));
|
|
AddColumn("dbo.DeviceProfiles", "CertificateAuthorityProviders", c => c.String(maxLength: 200));
|
|
AddColumn("dbo.DeviceProfiles", "WirelessProfileProviders", c => c.String(maxLength: 200));
|
|
|
|
// Migration support for eduSTAR.net plugin
|
|
Sql("UPDATE [DeviceProfiles] SET [CertificateAuthorityProviders]='EduSTARnetCertificateAuthorityProvider', [WirelessProfileProviders]='EduSTARnetWirelessProfileProvider' WHERE [CertificateProviders]='EduSTARnetCertificateProvider'");
|
|
}
|
|
|
|
public override void Down()
|
|
{
|
|
AddColumn("dbo.DeviceProfiles", "CertificateProviderId", c => c.String(maxLength: 64));
|
|
DropColumn("dbo.DeviceProfiles", "WirelessProfileProviders");
|
|
DropColumn("dbo.DeviceProfiles", "CertificateAuthorityProviders");
|
|
DropColumn("dbo.DeviceProfiles", "CertificateProviders");
|
|
}
|
|
}
|
|
}
|