Skip to content

Commit 36906f5

Browse files
committed
add migration
1 parent a64fa5a commit 36906f5

File tree

4 files changed

+228
-0
lines changed

4 files changed

+228
-0
lines changed

src/AbpCompanyName.AbpProjectName.EntityFramework/AbpCompanyName.AbpProjectName.EntityFramework.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@
289289
<Compile Include="Migrations\202012180651436_Upgraded_To_ABP_6_1_1.designer.cs">
290290
<DependentUpon>202012180651436_Upgraded_To_ABP_6_1_1.cs</DependentUpon>
291291
</Compile>
292+
<Compile Include="Migrations\202103241020465_Upgradd_To_ABP_6_3_0.cs" />
293+
<Compile Include="Migrations\202103241020465_Upgradd_To_ABP_6_3_0.designer.cs">
294+
<DependentUpon>202103241020465_Upgradd_To_ABP_6_3_0.cs</DependentUpon>
295+
</Compile>
292296
<Compile Include="Migrations\AbpZeroDbMigrator.cs" />
293297
<Compile Include="Migrations\Configuration.cs" />
294298
<Compile Include="Migrations\SeedData\DefaultEditionsCreator.cs" />
@@ -353,6 +357,9 @@
353357
<EmbeddedResource Include="Migrations\202012180651436_Upgraded_To_ABP_6_1_1.resx">
354358
<DependentUpon>202012180651436_Upgraded_To_ABP_6_1_1.cs</DependentUpon>
355359
</EmbeddedResource>
360+
<EmbeddedResource Include="Migrations\202103241020465_Upgradd_To_ABP_6_3_0.resx">
361+
<DependentUpon>202103241020465_Upgradd_To_ABP_6_3_0.cs</DependentUpon>
362+
</EmbeddedResource>
356363
</ItemGroup>
357364
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
358365
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/202103241020465_Upgradd_To_ABP_6_3_0.Designer.cs

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
namespace AbpCompanyName.AbpProjectName.Migrations
2+
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Data.Entity.Infrastructure.Annotations;
6+
using System.Data.Entity.Migrations;
7+
8+
public partial class Upgradd_To_ABP_6_3_0 : DbMigration
9+
{
10+
public override void Up()
11+
{
12+
DropIndex("dbo.AbpWebhookSubscriptions", new[] { "TenantId" });
13+
AlterTableAnnotations(
14+
"dbo.AbpWebhookSubscriptions",
15+
c => new
16+
{
17+
Id = c.Guid(nullable: false),
18+
TenantId = c.Int(),
19+
WebhookUri = c.String(nullable: false),
20+
Secret = c.String(nullable: false),
21+
IsActive = c.Boolean(nullable: false),
22+
Webhooks = c.String(),
23+
Headers = c.String(),
24+
CreationTime = c.DateTime(nullable: false),
25+
CreatorUserId = c.Long(),
26+
},
27+
annotations: new Dictionary<string, AnnotationValues>
28+
{
29+
{
30+
"DynamicFilter_WebhookSubscriptionInfo_MayHaveTenant",
31+
new AnnotationValues(oldValue: "EntityFramework.DynamicFilters.DynamicFilterDefinition", newValue: null)
32+
},
33+
});
34+
35+
AddColumn("dbo.AbpAuditLogs", "ExceptionMessage", c => c.String(maxLength: 1024));
36+
}
37+
38+
public override void Down()
39+
{
40+
DropColumn("dbo.AbpAuditLogs", "ExceptionMessage");
41+
AlterTableAnnotations(
42+
"dbo.AbpWebhookSubscriptions",
43+
c => new
44+
{
45+
Id = c.Guid(nullable: false),
46+
TenantId = c.Int(),
47+
WebhookUri = c.String(nullable: false),
48+
Secret = c.String(nullable: false),
49+
IsActive = c.Boolean(nullable: false),
50+
Webhooks = c.String(),
51+
Headers = c.String(),
52+
CreationTime = c.DateTime(nullable: false),
53+
CreatorUserId = c.Long(),
54+
},
55+
annotations: new Dictionary<string, AnnotationValues>
56+
{
57+
{
58+
"DynamicFilter_WebhookSubscriptionInfo_MayHaveTenant",
59+
new AnnotationValues(oldValue: null, newValue: "EntityFramework.DynamicFilters.DynamicFilterDefinition")
60+
},
61+
});
62+
63+
CreateIndex("dbo.AbpWebhookSubscriptions", "TenantId");
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)