Skip to content

Commit 98d357c

Browse files
Added migrations
1 parent 5443eeb commit 98d357c

File tree

5 files changed

+274
-46
lines changed

5 files changed

+274
-46
lines changed

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

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,32 @@
3535
<WarningLevel>4</WarningLevel>
3636
</PropertyGroup>
3737
<ItemGroup>
38-
<Reference Include="Abp, Version=3.9.0.0, Culture=neutral, processorArchitecture=MSIL">
39-
<HintPath>..\packages\Abp.3.9.0\lib\netstandard2.0\Abp.dll</HintPath>
38+
<Reference Include="Abp, Version=4.1.0.0, Culture=neutral, processorArchitecture=MSIL">
39+
<HintPath>..\packages\Abp.4.1.0\lib\netstandard2.0\Abp.dll</HintPath>
4040
</Reference>
41-
<Reference Include="Abp.EntityFramework, Version=3.9.0.0, Culture=neutral, processorArchitecture=MSIL">
42-
<HintPath>..\packages\Abp.EntityFramework.3.9.0\lib\net461\Abp.EntityFramework.dll</HintPath>
41+
<Reference Include="Abp.EntityFramework, Version=4.1.0.0, Culture=neutral, processorArchitecture=MSIL">
42+
<HintPath>..\packages\Abp.EntityFramework.4.1.0\lib\net461\Abp.EntityFramework.dll</HintPath>
4343
</Reference>
44-
<Reference Include="Abp.EntityFramework.Common, Version=3.9.0.0, Culture=neutral, processorArchitecture=MSIL">
45-
<HintPath>..\packages\Abp.EntityFramework.Common.3.9.0\lib\netstandard2.0\Abp.EntityFramework.Common.dll</HintPath>
44+
<Reference Include="Abp.EntityFramework.Common, Version=4.1.0.0, Culture=neutral, processorArchitecture=MSIL">
45+
<HintPath>..\packages\Abp.EntityFramework.Common.4.1.0\lib\netstandard2.0\Abp.EntityFramework.Common.dll</HintPath>
4646
</Reference>
47-
<Reference Include="Abp.Zero, Version=3.9.0.0, Culture=neutral, processorArchitecture=MSIL">
48-
<HintPath>..\packages\Abp.Zero.3.9.0\lib\net461\Abp.Zero.dll</HintPath>
47+
<Reference Include="Abp.Zero, Version=4.1.0.0, Culture=neutral, processorArchitecture=MSIL">
48+
<HintPath>..\packages\Abp.Zero.4.1.0\lib\net461\Abp.Zero.dll</HintPath>
4949
</Reference>
50-
<Reference Include="Abp.Zero.Common, Version=3.9.0.0, Culture=neutral, processorArchitecture=MSIL">
51-
<HintPath>..\packages\Abp.Zero.Common.3.9.0\lib\netstandard2.0\Abp.Zero.Common.dll</HintPath>
50+
<Reference Include="Abp.Zero.Common, Version=4.1.0.0, Culture=neutral, processorArchitecture=MSIL">
51+
<HintPath>..\packages\Abp.Zero.Common.4.1.0\lib\netstandard2.0\Abp.Zero.Common.dll</HintPath>
5252
</Reference>
53-
<Reference Include="Abp.Zero.EntityFramework, Version=3.9.0.0, Culture=neutral, processorArchitecture=MSIL">
54-
<HintPath>..\packages\Abp.Zero.EntityFramework.3.9.0\lib\net461\Abp.Zero.EntityFramework.dll</HintPath>
53+
<Reference Include="Abp.Zero.EntityFramework, Version=4.1.0.0, Culture=neutral, processorArchitecture=MSIL">
54+
<HintPath>..\packages\Abp.Zero.EntityFramework.4.1.0\lib\net461\Abp.Zero.EntityFramework.dll</HintPath>
5555
</Reference>
5656
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
5757
<HintPath>..\packages\Castle.Core.4.3.1\lib\net45\Castle.Core.dll</HintPath>
5858
</Reference>
5959
<Reference Include="Castle.Facilities.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
60-
<HintPath>..\packages\Castle.LoggingFacility.4.1.0\lib\net45\Castle.Facilities.Logging.dll</HintPath>
60+
<HintPath>..\packages\Castle.LoggingFacility.4.1.1\lib\net45\Castle.Facilities.Logging.dll</HintPath>
6161
</Reference>
6262
<Reference Include="Castle.Windsor, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
63-
<HintPath>..\packages\Castle.Windsor.4.1.0\lib\net45\Castle.Windsor.dll</HintPath>
63+
<HintPath>..\packages\Castle.Windsor.4.1.1\lib\net45\Castle.Windsor.dll</HintPath>
6464
</Reference>
6565
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
6666
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
@@ -77,20 +77,20 @@
7777
<Reference Include="Microsoft.AspNet.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
7878
<HintPath>..\packages\Microsoft.AspNet.Identity.Core.2.2.2\lib\net45\Microsoft.AspNet.Identity.Core.dll</HintPath>
7979
</Reference>
80-
<Reference Include="Microsoft.Extensions.Caching.Abstractions, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
81-
<HintPath>..\packages\Microsoft.Extensions.Caching.Abstractions.2.1.2\lib\netstandard2.0\Microsoft.Extensions.Caching.Abstractions.dll</HintPath>
80+
<Reference Include="Microsoft.Extensions.Caching.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
81+
<HintPath>..\packages\Microsoft.Extensions.Caching.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Caching.Abstractions.dll</HintPath>
8282
</Reference>
83-
<Reference Include="Microsoft.Extensions.Caching.Memory, Version=2.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
84-
<HintPath>..\packages\Microsoft.Extensions.Caching.Memory.2.1.2\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll</HintPath>
83+
<Reference Include="Microsoft.Extensions.Caching.Memory, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
84+
<HintPath>..\packages\Microsoft.Extensions.Caching.Memory.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll</HintPath>
8585
</Reference>
86-
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
87-
<HintPath>..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
86+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
87+
<HintPath>..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
8888
</Reference>
89-
<Reference Include="Microsoft.Extensions.Options, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
90-
<HintPath>..\packages\Microsoft.Extensions.Options.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Options.dll</HintPath>
89+
<Reference Include="Microsoft.Extensions.Options, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
90+
<HintPath>..\packages\Microsoft.Extensions.Options.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Options.dll</HintPath>
9191
</Reference>
92-
<Reference Include="Microsoft.Extensions.Primitives, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
93-
<HintPath>..\packages\Microsoft.Extensions.Primitives.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath>
92+
<Reference Include="Microsoft.Extensions.Primitives, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
93+
<HintPath>..\packages\Microsoft.Extensions.Primitives.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath>
9494
</Reference>
9595
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
9696
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll</HintPath>
@@ -101,8 +101,8 @@
101101
<Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.168.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
102102
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
103103
</Reference>
104-
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
105-
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
104+
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
105+
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
106106
</Reference>
107107
<Reference Include="Nito.AsyncEx, Version=4.0.1.0, Culture=neutral, processorArchitecture=MSIL">
108108
<HintPath>..\packages\Nito.AsyncEx.4.0.1\lib\net45\Nito.AsyncEx.dll</HintPath>
@@ -151,8 +151,8 @@
151151
<Reference Include="System.Data.OracleClient" />
152152
<Reference Include="System.Drawing" />
153153
<Reference Include="System.IO.Compression.FileSystem" />
154-
<Reference Include="System.Linq.Dynamic.Core, Version=1.0.8.18, Culture=neutral, PublicKeyToken=0f07ec44de6ac832, processorArchitecture=MSIL">
155-
<HintPath>..\packages\System.Linq.Dynamic.Core.1.0.8.18\lib\net46\System.Linq.Dynamic.Core.dll</HintPath>
154+
<Reference Include="System.Linq.Dynamic.Core, Version=1.0.9.1, Culture=neutral, PublicKeyToken=0f07ec44de6ac832, processorArchitecture=MSIL">
155+
<HintPath>..\packages\System.Linq.Dynamic.Core.1.0.9.1\lib\net46\System.Linq.Dynamic.Core.dll</HintPath>
156156
</Reference>
157157
<Reference Include="System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
158158
<HintPath>..\packages\System.Memory.4.5.1\lib\netstandard2.0\System.Memory.dll</HintPath>
@@ -212,8 +212,8 @@
212212
<Reference Include="System.Xml.XPath.XmlDocument, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
213213
<HintPath>..\packages\System.Xml.XPath.XmlDocument.4.3.0\lib\net46\System.Xml.XPath.XmlDocument.dll</HintPath>
214214
</Reference>
215-
<Reference Include="TimeZoneConverter, Version=2.4.1.0, Culture=neutral, processorArchitecture=MSIL">
216-
<HintPath>..\packages\TimeZoneConverter.2.4.1\lib\net45\TimeZoneConverter.dll</HintPath>
215+
<Reference Include="TimeZoneConverter, Version=2.5.1.0, Culture=neutral, processorArchitecture=MSIL">
216+
<HintPath>..\packages\TimeZoneConverter.2.5.1\lib\net45\TimeZoneConverter.dll</HintPath>
217217
</Reference>
218218
</ItemGroup>
219219
<ItemGroup>
@@ -228,6 +228,10 @@
228228
<Compile Include="Migrations\201810150846132_Upgraded_To_ABP_v3_9_0.Designer.cs">
229229
<DependentUpon>201810150846132_Upgraded_To_ABP_v3_9_0.cs</DependentUpon>
230230
</Compile>
231+
<Compile Include="Migrations\201901110613114_Upgraded_To_ABP_v4_1_0.cs" />
232+
<Compile Include="Migrations\201901110613114_Upgraded_To_ABP_v4_1_0.Designer.cs">
233+
<DependentUpon>201901110613114_Upgraded_To_ABP_v4_1_0.cs</DependentUpon>
234+
</Compile>
231235
<Compile Include="Migrations\AbpZeroDbMigrator.cs" />
232236
<Compile Include="Migrations\Configuration.cs" />
233237
<Compile Include="Migrations\SeedData\DefaultEditionsCreator.cs" />
@@ -256,6 +260,9 @@
256260
<EmbeddedResource Include="Migrations\201810150846132_Upgraded_To_ABP_v3_9_0.resx">
257261
<DependentUpon>201810150846132_Upgraded_To_ABP_v3_9_0.cs</DependentUpon>
258262
</EmbeddedResource>
263+
<EmbeddedResource Include="Migrations\201901110613114_Upgraded_To_ABP_v4_1_0.resx">
264+
<DependentUpon>201901110613114_Upgraded_To_ABP_v4_1_0.cs</DependentUpon>
265+
</EmbeddedResource>
259266
</ItemGroup>
260267
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
261268
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/201901110613114_Upgraded_To_ABP_v4_1_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.Data.Entity.Migrations;
5+
6+
public partial class Upgraded_To_ABP_v4_1_0 : DbMigration
7+
{
8+
public override void Up()
9+
{
10+
CreateIndex("dbo.AbpAuditLogs", "TenantId");
11+
CreateIndex("dbo.AbpFeatures", "TenantId");
12+
CreateIndex("dbo.AbpEditions", "IsDeleted");
13+
CreateIndex("dbo.AbpLanguages", "TenantId");
14+
CreateIndex("dbo.AbpLanguages", "IsDeleted");
15+
CreateIndex("dbo.AbpLanguageTexts", "TenantId");
16+
CreateIndex("dbo.AbpNotificationSubscriptions", "TenantId");
17+
CreateIndex("dbo.AbpOrganizationUnits", "TenantId");
18+
CreateIndex("dbo.AbpOrganizationUnits", "IsDeleted");
19+
CreateIndex("dbo.AbpPermissions", "TenantId");
20+
CreateIndex("dbo.AbpRoles", "TenantId");
21+
CreateIndex("dbo.AbpRoles", "IsDeleted");
22+
CreateIndex("dbo.AbpUsers", "TenantId");
23+
CreateIndex("dbo.AbpUsers", "IsDeleted");
24+
CreateIndex("dbo.AbpUserClaims", "TenantId");
25+
CreateIndex("dbo.AbpUserLogins", "TenantId");
26+
CreateIndex("dbo.AbpUserRoles", "TenantId");
27+
CreateIndex("dbo.AbpSettings", "TenantId");
28+
CreateIndex("dbo.AbpTenantNotifications", "TenantId");
29+
CreateIndex("dbo.AbpTenants", "IsDeleted");
30+
CreateIndex("dbo.AbpUserAccounts", "IsDeleted");
31+
CreateIndex("dbo.AbpUserLoginAttempts", "TenantId");
32+
CreateIndex("dbo.AbpUserNotifications", "TenantId");
33+
CreateIndex("dbo.AbpUserOrganizationUnits", "TenantId");
34+
CreateIndex("dbo.AbpUserOrganizationUnits", "IsDeleted");
35+
}
36+
37+
public override void Down()
38+
{
39+
DropIndex("dbo.AbpUserOrganizationUnits", new[] { "IsDeleted" });
40+
DropIndex("dbo.AbpUserOrganizationUnits", new[] { "TenantId" });
41+
DropIndex("dbo.AbpUserNotifications", new[] { "TenantId" });
42+
DropIndex("dbo.AbpUserLoginAttempts", new[] { "TenantId" });
43+
DropIndex("dbo.AbpUserAccounts", new[] { "IsDeleted" });
44+
DropIndex("dbo.AbpTenants", new[] { "IsDeleted" });
45+
DropIndex("dbo.AbpTenantNotifications", new[] { "TenantId" });
46+
DropIndex("dbo.AbpSettings", new[] { "TenantId" });
47+
DropIndex("dbo.AbpUserRoles", new[] { "TenantId" });
48+
DropIndex("dbo.AbpUserLogins", new[] { "TenantId" });
49+
DropIndex("dbo.AbpUserClaims", new[] { "TenantId" });
50+
DropIndex("dbo.AbpUsers", new[] { "IsDeleted" });
51+
DropIndex("dbo.AbpUsers", new[] { "TenantId" });
52+
DropIndex("dbo.AbpRoles", new[] { "IsDeleted" });
53+
DropIndex("dbo.AbpRoles", new[] { "TenantId" });
54+
DropIndex("dbo.AbpPermissions", new[] { "TenantId" });
55+
DropIndex("dbo.AbpOrganizationUnits", new[] { "IsDeleted" });
56+
DropIndex("dbo.AbpOrganizationUnits", new[] { "TenantId" });
57+
DropIndex("dbo.AbpNotificationSubscriptions", new[] { "TenantId" });
58+
DropIndex("dbo.AbpLanguageTexts", new[] { "TenantId" });
59+
DropIndex("dbo.AbpLanguages", new[] { "IsDeleted" });
60+
DropIndex("dbo.AbpLanguages", new[] { "TenantId" });
61+
DropIndex("dbo.AbpEditions", new[] { "IsDeleted" });
62+
DropIndex("dbo.AbpFeatures", new[] { "TenantId" });
63+
DropIndex("dbo.AbpAuditLogs", new[] { "TenantId" });
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)