diff --git a/src/Migrator/Migrations/Migration202001071100ExtendLogging.cs b/src/Migrator/Migrations/Migration202001071100ExtendLogging.cs new file mode 100644 index 0000000000000000000000000000000000000000..2d61b3be9e961d3d479d816cc3697251868e2bd1 --- /dev/null +++ b/src/Migrator/Migrations/Migration202001071100ExtendLogging.cs @@ -0,0 +1,26 @@ +using FluentMigrator; +using System; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Xml; +using System.Xml.Linq; + +namespace Coscine.Database.Migration.Migrations +{ + //yyyymmddhhmm + [Migration(202001071100)] + public class Migration202001071100ExtendLogging : FluentMigrator.Migration + { + public override void Down() + { + Alter.Column("Message").OnTable("Log").AsString(500).Nullable(); + } + + public override void Up() + { + Alter.Column("Message").OnTable("Log").AsString(Int32.MaxValue).Nullable(); + } + + } +} \ No newline at end of file diff --git a/src/Migrator/Migrator.csproj b/src/Migrator/Migrator.csproj index 2985d6de3e863336d3ba3bcae2b13b78d95ce502..c1a9e82c347d16e5f45dd6e59140f4c0e84306d6 100644 --- a/src/Migrator/Migrator.csproj +++ b/src/Migrator/Migrator.csproj @@ -160,6 +160,7 @@ <Compile Include="Migrations\Migration201912060900BucketApplication.cs" /> <Compile Include="Migrations\Migration201912091553ShibbolethAddition.cs" /> <Compile Include="Migrations\Migration201911121400Logging.cs" /> + <Compile Include="Migrations\Migration202001071100ExtendLogging.cs" /> <Compile Include="Migrator.cs" /> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />