mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
b5f6bab6ec
commit
1e7cefc273
5 changed files with 18 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
dist: trusty
|
||||
language: csharp
|
||||
mono: none
|
||||
dotnet: 2.1.400
|
||||
dotnet: 2.1.401
|
||||
solution: FilterLists.sln
|
||||
addons:
|
||||
apt:
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "data", "data", "{8C3C7C63-F
|
|||
data\FilterList.json = data\FilterList.json
|
||||
data\FilterListLanguage.json = data\FilterListLanguage.json
|
||||
data\FilterListMaintainer.json = data\FilterListMaintainer.json
|
||||
data\FilterListTag.json = data\FilterListTag.json
|
||||
data\Fork.json = data\Fork.json
|
||||
data\Language.json = data\Language.json
|
||||
data\License.json = data\License.json
|
||||
|
|
@ -24,6 +25,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "data", "data", "{8C3C7C63-F
|
|||
data\Software.json = data\Software.json
|
||||
data\SoftwareSyntax.json = data\SoftwareSyntax.json
|
||||
data\Syntax.json = data\Syntax.json
|
||||
data\Tag.json = data\Tag.json
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{FCA7F77A-9EC6-4C6D-A80E-7DD27FF95673}"
|
||||
|
|
|
|||
6
data/FilterListTag.json
Normal file
6
data/FilterListTag.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
{
|
||||
"filterListId": 19,
|
||||
"tagId": 1
|
||||
}
|
||||
]
|
||||
7
data/Tag.json
Normal file
7
data/Tag.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[
|
||||
{
|
||||
"id": 1,
|
||||
"name": "crypto",
|
||||
"description": "Blocks cryptomining and/or cryptojacking"
|
||||
}
|
||||
]
|
||||
|
|
@ -19,9 +19,11 @@ public static void SeedOrUpdate(this FilterListsDbContext dbContext, string data
|
|||
dbContext.InsertOnDuplicateKeyUpdate<Maintainer>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<Software>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<Syntax>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<Tag>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<FilterList>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<FilterListLanguage>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<FilterListMaintainer>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<FilterListTag>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<Fork>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<Merge>(dataPath);
|
||||
dbContext.InsertOnDuplicateKeyUpdate<SoftwareSyntax>(dataPath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue