diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-05-26 23:47:54 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-05-26 23:47:54 -0500 |
| commit | 0354b842141d354a82072aee78000f87ce8b348f (patch) | |
| tree | ed6542f9be41a527a1e58a55dcb0a0ac8824add4 /src | |
| parent | 5a74a2339b2546e82f5e410571966af2e6459062 (diff) | |
| download | slskd-0354b842141d354a82072aee78000f87ce8b348f.tar.gz | |
add responses and files to db context
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/Search/SearchDbContext.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Core/Search/SearchDbContext.cs b/src/slskd/Core/Search/SearchDbContext.cs index 4832bc17..96d62432 100644 --- a/src/slskd/Core/Search/SearchDbContext.cs +++ b/src/slskd/Core/Search/SearchDbContext.cs @@ -24,8 +24,11 @@ namespace slskd.Search public SearchDbContext(DbContextOptions<SearchDbContext> options) : base(options) { + Database.EnsureCreated(); } public DbSet<Search> Searches { get; set; } + public DbSet<SearchResponse> SearchResponses { get; set; } + public DbSet<File> Files { get; set; } } } |
