Skip to content

Commit 34b8f49

Browse files
committed
fix: correct GovUkPayDbContext namespace in efmigrate
The actual namespace is Infrastructure.Data.GovUkPayDbContext, not LocalGovIms.Integration.GovUKPay.Infrastructure.GovUkPayDbContext.
1 parent fad7696 commit 34b8f49

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • cloudformation/scenarios/localgov-ims/docker/efmigrate
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
using Microsoft.EntityFrameworkCore;
2+
using Infrastructure.Data;
23

34
var connectionString = args.FirstOrDefault(a => a.StartsWith("--connection="))?.Substring("--connection=".Length)
45
?? throw new ArgumentException("Usage: efmigrate --connection=<connection-string>");
56

67
Console.WriteLine("Running EF Core migrations for GOV.UK Pay integration...");
78

8-
var optionsBuilder = new DbContextOptionsBuilder<LocalGovIms.Integration.GovUKPay.Infrastructure.GovUkPayDbContext>();
9+
var optionsBuilder = new DbContextOptionsBuilder<GovUkPayDbContext>();
910
optionsBuilder.UseSqlServer(connectionString);
1011

11-
using var context = new LocalGovIms.Integration.GovUKPay.Infrastructure.GovUkPayDbContext(optionsBuilder.Options);
12+
using var context = new GovUkPayDbContext(optionsBuilder.Options);
1213
context.Database.Migrate();
1314

1415
Console.WriteLine("EF Core migrations completed successfully.");

0 commit comments

Comments
 (0)