mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
only try db seed in debug
This commit is contained in:
parent
e2589657a9
commit
23ae1d6d85
2 changed files with 2838 additions and 2838 deletions
5674
data/Lists.json
5674
data/Lists.json
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using FilterLists.Data.Entities;
|
||||
|
|
@ -10,6 +11,7 @@ namespace FilterLists.Data
|
|||
{
|
||||
public static class DbInitializer
|
||||
{
|
||||
[Conditional("DEBUG")]
|
||||
public static void Initialize(FilterListsDbContext filterListsDbContext)
|
||||
{
|
||||
filterListsDbContext.Database.Migrate();
|
||||
|
|
|
|||
Loading…
Reference in a new issue