Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 4dc9ce0

Browse files
authored
Initial commit
0 parents  commit 4dc9ce0

19 files changed

+579
-0
lines changed

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 🪲 Bug Report
2+
description: File a bug report
3+
title: "Something didn't work"
4+
labels: ["bug", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
For help with using the library and "how do I" please see the documentation or post on StackOverflow.
10+
- type: checkboxes
11+
attributes:
12+
label: Is there an existing issue for this?
13+
description: Please search to see if an issue already exists for the bug you encountered.
14+
options:
15+
- label: I have searched the existing issues
16+
required: true
17+
- type: input
18+
id: version
19+
attributes:
20+
label: Library Version
21+
description: Which version of the library did you find the bug in?
22+
placeholder: 1.0.0
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: what-happened
27+
attributes:
28+
label: What happened?
29+
description: Also tell us, what did you expect to happen?
30+
placeholder: Tell us what you see!
31+
validations:
32+
required: true
33+
- type: textarea
34+
id: logs
35+
attributes:
36+
label: Relevant log output
37+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
38+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: DbUp Core Issue Repo
4+
url: https://github.com/DbUp/DbUp/issues
5+
about: If the issue or bug is not specific to this provider raise an issue in the main repo
6+
- name: DbUp Documentation
7+
url: https://dbup.readthedocs.io/
8+
- name: StackOverflow DbUp tag
9+
url: https://stackoverflow.com/questions/tagged/dbup
10+
about: For "How do I" questions, please post on StackOverflow
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 🆕 Enhancement
2+
description: Suggest a new feature or enhancement
3+
title: "Something new"
4+
labels: ["enhancement", "triage"]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Is there an existing issue for this?
9+
description: Please search to see if an issue already exists for the bug you encountered.
10+
options:
11+
- label: I have searched the existing open and closed issues
12+
required: true
13+
- type: textarea
14+
id: description
15+
attributes:
16+
label: Description
17+
placeholder: Sell us the enhancement
18+
validations:
19+
required: true
20+
- type: textarea
21+
id: impact
22+
attributes:
23+
label: What is the impact?
24+
description: How will this impact existing users? Is this a breaking change? Is this a common or edge use case?
25+
placeholder: Describe the impact this enhancement would have
26+
validations:
27+
required: true

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "nuget"
5+
directory: "/src/"
6+
schedule:
7+
interval: "weekly"
8+
ignore:
9+
# - dependency-name: "Foo*"

.github/pull_request_template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Checklist
2+
- [ ] I have read the [Contributing Guide](https://github.com/DbUp/DbUp/blob/master/CONTRIBUTING.md)
3+
- [ ] I have checked to ensure this does not introduce an unintended breaking changes
4+
- [ ] I have considered appropriate testing for my change
5+
6+
# Description

.github/workflows/main.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest # Use Ubuntu in v5.0
11+
12+
env:
13+
DOTNET_NOLOGO: true
14+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Avoid pre-populating the NuGet package cache
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0 # all
20+
21+
- name: Setup .NET 2.0 # Remove in v5.0
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: 2.0.x
25+
26+
- name: Setup .NET 8.0
27+
uses: actions/setup-dotnet@v1
28+
with:
29+
dotnet-version: 8.0.x
30+
31+
- name: Install GitVersion
32+
uses: gittools/actions/gitversion/setup@v0
33+
with:
34+
versionSpec: '5.x'
35+
36+
- name: Run GitVersion
37+
id: gitversion
38+
uses: gittools/actions/gitversion/execute@v0
39+
40+
- name: Display SemVer
41+
run: |
42+
echo "SemVer: $env:GitVersion_SemVer"
43+
44+
- name: Add DbUp NuGet Source
45+
run: dotnet nuget add source --name DbUp --username DbUp --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text https://nuget.pkg.github.com/DbUp/index.json
46+
47+
- name: Restore
48+
run: dotnet restore
49+
working-directory: src
50+
51+
- name: Build
52+
run: dotnet build -c Release --no-restore /p:Version=$env:GitVersion_SemVer
53+
working-directory: src
54+
55+
- name: Test
56+
run: dotnet test --no-build -c Release --logger trx --logger "console;verbosity=detailed" --results-directory ../artifacts
57+
working-directory: src
58+
59+
- name: Pack
60+
run: dotnet pack --no-build -c Release -o ../artifacts /p:Version=$env:GitVersion_SemVer
61+
working-directory: src
62+
63+
- name: Push NuGet packages to GitHub Packages ⬆️
64+
working-directory: artifacts
65+
run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/DbUp/index.json"
66+
67+
- name: Push NuGet packages to NuGet ⬆️
68+
if: ${{ steps.gitversion.outputs.preReleaseLabel == '' }}
69+
working-directory: artifacts
70+
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json
71+
72+
- name: Test Report 🧪
73+
uses: dorny/test-reporter@v1
74+
if: ${{ always() }}
75+
with:
76+
name: Tests
77+
path: artifacts/*.trx
78+
reporter: dotnet-trx

.gitignore

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
2+
bin
3+
obj
4+
5+
# mstest test results
6+
TestResults
7+
8+
9+
*.*[~]
10+
*.swp
11+
*.userprefs
12+
*.test-cache
13+
*.pidb
14+
*.*scc
15+
*.FileListAbsolute.txt
16+
*.aps
17+
*.bak
18+
*.[Cc]ache
19+
*.clw
20+
*.eto
21+
*.fb6lck
22+
*.fbl6
23+
*.fbpInf
24+
*.ilk
25+
*.lib
26+
*.log
27+
*.ncb
28+
*.nlb
29+
*.obj
30+
*.patch
31+
*.pch
32+
*.pdb
33+
*.plg
34+
*.[Pp]ublish.xml
35+
*.rdl.data
36+
*.sbr
37+
*.scc
38+
*.sig
39+
*.sqlsuo
40+
*.suo
41+
*.svclog
42+
*.tlb
43+
*.tlh
44+
*.tli
45+
*.tmp
46+
*.user
47+
*.vshost.*
48+
*DXCore.Solution
49+
*_i.c
50+
*_p.c
51+
Ankh.Load
52+
Backup*
53+
CVS/
54+
PrecompiledWeb/
55+
UpgradeLog*.*
56+
[Bb]in/
57+
[Dd]ebug/
58+
[Oo]bj/
59+
[Rr]elease/
60+
[Tt]humbs.db
61+
test-results/
62+
_UpgradeReport_Files
63+
_[Rr]e[Ss]harper.*/
64+
_TeamCity.*/
65+
hgignore[.-]*
66+
ignore[.-]*
67+
svnignore[.-]*
68+
lint.db
69+
src/FunnelWeb.Web/App_Data/ClientDependency
70+
files\*
71+
files/*
72+
Files/*
73+
Temp/*
74+
build/Artifacts/
75+
build/Published/
76+
build/TestResult.xml
77+
[pP]ublish
78+
lib
79+
packages
80+
81+
.DS_Store
82+
*.pidb
83+
*.orig
84+
src/packages/
85+
*.received.txt
86+
src/_NCrunch_DbUp
87+
*.received.cs
88+
dbup*.nupkg
89+
.idea
90+
91+
src/.vs/
92+
project.lock.json
93+
project.lock.json
94+
project.lock.json
95+
tools/
96+
artifacts/

GitVersion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mode: Mainline

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/DbUp/dbup-newprovider/CI/main)](https://github.com/DbUp/dbup-newprovider/actions/workflows/main.yml?query=branch%3Amain)
2+
[![NuGet](https://img.shields.io/nuget/dt/dbup-newprovider.svg)](https://www.nuget.org/packages/dbup-newprovider)
3+
[![NuGet](https://img.shields.io/nuget/v/dbup-newprovider.svg)](https://www.nuget.org/packages/dbup-newprovider)
4+
[![Prerelease](https://img.shields.io/nuget/vpre/dbup-newprovider?color=orange&label=prerelease)](https://www.nuget.org/packages/dbup-newprovider)
5+
6+
# DbUp NewProvider support
7+
DbUp is a .NET library that helps you to deploy changes to SQL Server databases. It tracks which SQL scripts have been run already, and runs the change scripts that are needed to get your database up to date.
8+
9+
## Getting Help
10+
To learn more about DbUp check out the [documentation](https://dbup.readthedocs.io/en/latest/)
11+
12+
Please only log issue related to NewProvider support in this repo. For cross cutting issues, please use our [main issue list](https://github.com/DbUp/DbUp/issues).
13+
14+
# Contributing
15+
16+
See the [readme in our main repo](https://github.com/DbUp/DbUp/blob/master/README.md) for how to get started and contribute.

license.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (C) 2015 DbUp contributors.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)