mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
c70f7d25cb
commit
9e7b2df9b2
1 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using System.IO;
|
||||
using FilterLists.Data.Seed.Extensions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using MySql.Data.MySqlClient;
|
||||
|
|
@ -32,7 +33,10 @@ public async void SeedOrUpdateAsync_DoesNotThrowException()
|
|||
}
|
||||
|
||||
await context.Database.MigrateAsync();
|
||||
await SeedFilterListsDbContext.SeedOrUpdateAsync(context, "../../../../../data");
|
||||
if (Directory.Exists("../../../../../data"))
|
||||
await SeedFilterListsDbContext.SeedOrUpdateAsync(context, "../../../../../data");
|
||||
else
|
||||
await SeedFilterListsDbContext.SeedOrUpdateAsync(context, "../../../../../../../../data");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue