Deliver portable native Architecture B deployment and final verification
This commit is contained in:
1 parent
f451b55de1
commit
36740d2492
92 files changed
+10939
-926
No files matched your search
@@ -24,12 +24,12 @@ public sealed class MeasurementContextMigrationTests
|
||||
var options = new DbContextOptionsBuilder<ObservationDbContext>().UseNpgsql(
|
||||
new NpgsqlConnectionStringBuilder(admin) { Database = database }.ConnectionString).Options;
|
||||
await using var db = new ObservationDbContext(options);
|
||||
await using(var target=new NpgsqlConnection(new NpgsqlConnectionStringBuilder(admin){Database=database}.ConnectionString))
|
||||
await using (var target = new NpgsqlConnection(new NpgsqlConnectionStringBuilder(admin) { Database = database }.ConnectionString))
|
||||
{
|
||||
await target.OpenAsync();
|
||||
foreach(var module in new[]{"Profile","Observations"})
|
||||
foreach(var file in Directory.GetFiles(Path.Combine(PatientProfile.AcceptanceTests.PatientApiFixture.FindRoot(),"src/Modules",module,"Migrations"),"*.sql"))
|
||||
await new NpgsqlCommand(await File.ReadAllTextAsync(file),target).ExecuteNonQueryAsync();
|
||||
foreach (var module in new[] { "Profile", "Observations" })
|
||||
foreach (var file in Directory.GetFiles(Path.Combine(PatientProfile.AcceptanceTests.PatientApiFixture.FindRoot(), "src/Modules", module, "Migrations"), "*.sql"))
|
||||
await new NpgsqlCommand(await File.ReadAllTextAsync(file), target).ExecuteNonQueryAsync();
|
||||
}
|
||||
var observation = Guid.NewGuid();
|
||||
var patient = Guid.NewGuid();
|
||||
|
||||
Reference in new issue
Block a user