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

Commit

Permalink
Replaced template placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
droyad committed Jan 24, 2024
1 parent 20d582f commit 0a5465f
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 76 deletions.
29 changes: 6 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,15 @@
# Using this Template
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/DbUp/dbup-sqlanywhere/CI/main)](https://github.com/DbUp/dbup-sqlanywhere/actions/workflows/main.yml?query=branch%3Amain)
[![NuGet](https://img.shields.io/nuget/dt/dbup-sqlanywhere.svg)](https://www.nuget.org/packages/dbup-sqlanywhere)
[![NuGet](https://img.shields.io/nuget/v/dbup-sqlanywhere.svg)](https://www.nuget.org/packages/dbup-sqlanywhere)
[![Prerelease](https://img.shields.io/nuget/vpre/dbup-sqlanywhere?color=orange&label=prerelease)](https://www.nuget.org/packages/dbup-sqlanywhere)

1. Create a new Repository in GitHub based on this template
- The name should be `dbup-nameofthenewprovider`
- It should be public
1. Clone it
1. Open it in VSCode or other light weight editor that doesn't have strong opinions about solution/project structure (i.e. not Rider/VS)
1. Search for `NewProvider` and replace with the new provider's name, **turning on the preserve case option**
1. Rename the following:
- `dbup-newprovider.sln`
- `dbup-newprovider.sln.DotSettings`
- `dbup-newprovider\dbup-newprovider.csproj`
- `dbup-newprovider` directory
1. Run `dotnet build` to ensure it builds
1. Uncomment the `push` and `pull_request` lines in `.github\workflows\main.yml`
1. Delete these instructions up to and including the next line, then check in

[![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)
[![NuGet](https://img.shields.io/nuget/dt/dbup-newprovider.svg)](https://www.nuget.org/packages/dbup-newprovider)
[![NuGet](https://img.shields.io/nuget/v/dbup-newprovider.svg)](https://www.nuget.org/packages/dbup-newprovider)
[![Prerelease](https://img.shields.io/nuget/vpre/dbup-newprovider?color=orange&label=prerelease)](https://www.nuget.org/packages/dbup-newprovider)

# DbUp NewProvider support
# DbUp SqlAnywhere support
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.

## Getting Help
To learn more about DbUp check out the [documentation](https://dbup.readthedocs.io/en/latest/)

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).
Please only log issue related to SqlAnywhere support in this repo. For cross cutting issues, please use our [main issue list](https://github.com/DbUp/DbUp/issues).

# Contributing

Expand Down
8 changes: 8 additions & 0 deletions src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,11 @@ csharp_preserve_single_line_blocks = true
[*.vb]
# Modifier preferences
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
###############################
# XML and csproj #
###############################
[*.{xml,csproj}]
max_line_length = off
trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 2
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

<PropertyGroup>
<Authors>https://github.com/orgs/DbUp/people</Authors>
<PackageReleaseNotes>https://github.com/DbUp/dbup-newprovider/releases</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/DbUp/dbup-sqlanywhere/releases</PackageReleaseNotes>
<PackageProjectUrl>https://dbup.github.io</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/dbup-newprovider/dbup-newprovider.git</RepositoryUrl>
<RepositoryUrl>https://github.com/dbup-sqlanywhere/dbup-sqlanywhere.git</RepositoryUrl>
<LangVersion>latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
Expand Down
21 changes: 9 additions & 12 deletions src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net462;net8</TargetFrameworks>
<TargetFrameworks>net462</TargetFrameworks>
<AssemblyName>Tests</AssemblyName>
<RootNamespace>DbUp.NewProvider.Tests</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<RootNamespace>DbUp.SqlAnywhere.Tests</RootNamespace>
<!-- <ImplicitUsings>enable</ImplicitUsings> Can't use implict usings with net46 -->
<Nullable>enable</Nullable>
<NoWarn>$(NoWarn);NETSDK1138</NoWarn> <!-- Purposefully leaving an old version of netcoreapp to ensure we have compatibility. This never gets published -->
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\dbup-newprovider\dbup-newprovider.csproj" />
<PackageReference Include="DbUp.Tests.Common" Version="5.0.37" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.6" />
<ProjectReference Include="..\dbup-sqlanywhere\dbup-sqlanywhere.csproj"/>
<PackageReference Include="DbUp.Tests.Common" Version="5.0.37"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
<PackageReference Include="xunit" Version="2.6.6"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<Compile Remove="ApprovalFiles\*.cs" />
<None Include="ApprovalFiles\*.cs" />
<Compile Remove="ApprovalFiles\*.cs"/>
<None Include="ApprovalFiles\*.cs"/>
</ItemGroup>

</Project>
37 changes: 0 additions & 37 deletions src/dbup-newprovider/dbup-newprovider.csproj

This file was deleted.

4 changes: 2 additions & 2 deletions src/dbup-newprovider.sln → src/dbup-sqlanywhere.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dbup-newprovider", "dbup-newprovider\dbup-newprovider.csproj", "{2A7189BD-96CE-41CA-9100-E1B1DD10FF40}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dbup-sqlanywhere", "dbup-sqlanywhere\dbup-sqlanywhere.csproj", "{2A7189BD-96CE-41CA-9100-E1B1DD10FF40}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{8CE634FE-6772-408E-9340-909F6218F8F7}"
EndProject
Expand All @@ -22,7 +22,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{77157734-01DA-4AA3-A15C-504013343B29}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
dbup-newprovider.sln.DotSettings = dbup-newprovider.sln.DotSettings
dbup-sqlanywhere.sln.DotSettings = dbup-sqlanywhere.sln.DotSettings
EndProjectSection
EndProject
Global
Expand Down
File renamed without changes.
27 changes: 27 additions & 0 deletions src/dbup-sqlanywhere/dbup-sqlanywhere.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>DbUp makes it easy to deploy and upgrade SQL Server databases. This package adds SqlAnywhere support.</Description>
<Title>DbUp SqlAnywhere Support</Title>
<Company>DbUp Contributors</Company>
<Product>DbUp</Product>
<Copyright>Copyright © DbUp Contributors 2015</Copyright>
<TargetFrameworks>net462</TargetFrameworks>
<AssemblyName>dbup-sqlanywhere</AssemblyName>
<RootNamespace>DbUp.SqlAnywhere</RootNamespace>
<PackageId>dbup-sqlanywhere</PackageId>
<AssemblyOriginatorKeyFile>../dbup.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<RepositoryUrl>https://github.com/DbUp/dbup-sqlanywhere.git</RepositoryUrl>
<PackageIcon>dbup-icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="dbup-core" Version="5.0.37"/>
</ItemGroup>

<ItemGroup>
<None Visible="false" Include="../dbup-icon.png" Pack="True" PackagePath=""/>
</ItemGroup>

</Project>

0 comments on commit 0a5465f

Please sign in to comment.