Skip to content

Commit 09a8884

Browse files
author
Leonid
committed
Fix mysql migrations
1 parent 8ce1c20 commit 09a8884

14 files changed

+52
-5829
lines changed

eFormAPI/eFormAPI.Web/Hosting/Settings/EfConfigurationProvider.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Linq;
1+
using System.Linq;
32
using Castle.Core.Internal;
43
using eFormAPI.Web.Infrastructure.Database.Factories;
54
using eFormAPI.Web.Infrastructure.Database.Seed.SeedItems;
@@ -24,7 +23,6 @@ private void ReloadConfiguration()
2423
OnReload();
2524
}
2625

27-
2826
// Load config data from EF DB.
2927
public override void Load()
3028
{

eFormAPI/eFormAPI.Web/Infrastructure/Database/BaseDbContext.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,11 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
4949
.HasIndex(p => p.PluginId)
5050
.IsUnique();
5151

52-
modelBuilder.Entity<EformPlugin>()
53-
.Property(b => b.ConnectionString)
54-
.HasDefaultValue("...");
55-
5652
// Reports
5753
modelBuilder.Entity<EformReport>()
5854
.HasIndex(p => p.TemplateId)
5955
.IsUnique();
6056

61-
modelBuilder.Entity<EformReport>()
62-
.Property(b => b.Description)
63-
.HasDefaultValue("");
64-
6557
modelBuilder.Entity<EformReportElement>()
6658
.HasIndex(p => p.ElementId);
6759

eFormAPI/eFormAPI.Web/Infrastructure/Database/Factories/BaseDbContextFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public BaseDbContext CreateDbContext(string[] args)
2323
}
2424
else
2525
{
26+
//optionsBuilder.UseSqlServer("Data Source=.\\SQLEXPRESS;Database=123_Angular;Integrated Security=True");
2627
optionsBuilder.UseSqlServer("...");
2728
}
2829

0 commit comments

Comments
 (0)