feature: device profiles - set assigned user for logon
This commit is contained in:
@@ -201,6 +201,10 @@
|
||||
<Compile Include="Migrations\202507170522576_DBv28.Designer.cs">
|
||||
<DependentUpon>202507170522576_DBv28.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\202509070209304_DBv29.cs" />
|
||||
<Compile Include="Migrations\202509070209304_DBv29.Designer.cs">
|
||||
<DependentUpon>202509070209304_DBv29.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\Configuration.cs" />
|
||||
<Compile Include="Migrations\DiscoDataMigrator.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
@@ -300,6 +304,9 @@
|
||||
<EmbeddedResource Include="Migrations\202507170522576_DBv28.resx">
|
||||
<DependentUpon>202507170522576_DBv28.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\202509070209304_DBv29.resx">
|
||||
<DependentUpon>202509070209304_DBv29.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
// <auto-generated />
|
||||
namespace Disco.Data.Migrations
|
||||
{
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
public sealed partial class DBv29 : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(DBv29));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "202509070209304_DBv29"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace Disco.Data.Migrations
|
||||
{
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class DBv29 : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
AddColumn("dbo.DeviceProfiles", "SetAssignedUserForLogon", c => c.Boolean(nullable: false));
|
||||
Sql("UPDATE dbo.DeviceProfiles SET SetAssignedUserForLogon = 1");
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropColumn("dbo.DeviceProfiles", "SetAssignedUserForLogon");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user