From 2556eedc7c4134151ed808b8cc04e57bc4df4f74 Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Fri, 24 Jan 2020 14:53:11 +0100 Subject: [PATCH] Added Flow table SQL script as embedded resource For use with DbUp or other database upgrade tools --- Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj | 52 +++++++++++++++----------- Tapeti.Flow.SQL/scripts/Flow table.sql | 13 +++++++ 2 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 Tapeti.Flow.SQL/scripts/Flow table.sql diff --git a/Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj b/Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj index 428bda5..64e5907 100644 --- a/Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj +++ b/Tapeti.Flow.SQL/Tapeti.Flow.SQL.csproj @@ -1,22 +1,30 @@ - - - - netstandard2.0 - true - 2.0.0 - - - - 1701;1702 - - - - - - - - - - - - + + + + netstandard2.0 + true + 2.0.0 + + + + 1701;1702 + + + + + + + + + + + + + + + + + + + + diff --git a/Tapeti.Flow.SQL/scripts/Flow table.sql b/Tapeti.Flow.SQL/scripts/Flow table.sql new file mode 100644 index 0000000..a04d3f8 --- /dev/null +++ b/Tapeti.Flow.SQL/scripts/Flow table.sql @@ -0,0 +1,13 @@ +/* + + This script is embedded in the Tapeti.Flow.SQL package so it can be used with, for example, DbUp + +*/ + +create table Flow +( + FlowID uniqueidentifier not null, + CreationTime datetime2(3) not null, + StateJson nvarchar(max) null, + constraint PK_Flow primary key clustered(FlowID) +); \ No newline at end of file