Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
Add BuntladeStalle table migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ActiveVibe committed Dec 5, 2017
1 parent 6dd76b9 commit 13386ef
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Bunt.Migrations/201712051338_AddBuntladeStalleTable.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using FluentMigrator;

namespace Bunt.Migrations
{
[Migration(201712051338)]
public class AddBuntladeStalleTable : AutoReversingMigration
{
public override void Up()
{
Create.Table("BuntladeStalle")
.WithColumn("Id").AsGuid().PrimaryKey()
.WithColumn("Index").AsInt32()
.WithColumn("Adress").AsString()
.WithColumn("Typ").AsInt32()
.WithColumn("Buntladenummer").AsInt32().Nullable();
}
}
}
11 changes: 11 additions & 0 deletions Bunt.Migrations/Bunt.Migrations.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentMigrator" Version="1.6.2" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions Bunt.Migrations/Migrate_Local.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Users\%USERNAME%\.nuget\packages\FluentMigrator\1.6.2\tools\Migrate.exe --conn "Server=.;Database=Bunt;Integrated Security=True;" --assembly "bin\Debug\netstandard2.0\Bunt.Migrations.dll" --db SqlServer2014
6 changes: 6 additions & 0 deletions Bunt.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bunt.Web", "Bunt.Web\Bunt.W
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bunt.Core", "Bunt.Core\Bunt.Core.csproj", "{3C8D8E0E-6CB6-4AA2-A242-EE85A3F4A991}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bunt.Migrations", "Bunt.Migrations\Bunt.Migrations.csproj", "{1568EC12-A698-4707-8EFD-E1B8C7E769E3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -21,6 +23,10 @@ Global
{3C8D8E0E-6CB6-4AA2-A242-EE85A3F4A991}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C8D8E0E-6CB6-4AA2-A242-EE85A3F4A991}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C8D8E0E-6CB6-4AA2-A242-EE85A3F4A991}.Release|Any CPU.Build.0 = Release|Any CPU
{1568EC12-A698-4707-8EFD-E1B8C7E769E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1568EC12-A698-4707-8EFD-E1B8C7E769E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1568EC12-A698-4707-8EFD-E1B8C7E769E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1568EC12-A698-4707-8EFD-E1B8C7E769E3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 13386ef

Please sign in to comment.