From 243811c9f79e7b0d95b45746dc344b2521cc1107 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Fri, 25 Jul 2025 20:31:46 +0100 Subject: [PATCH] mysql migration fix - late patch - jk --- .../20241108094512_simplecontent-20241108.cs | 10 +++++----- ...oudscribe.SimpleContent.Storage.EFCore.MySQL.csproj | 2 +- src/sourceDev.WebApp/Config/CloudscribeFeatures.cs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cloudscribe.SimpleContent.Storage.EFCore.MySQL/Migrations/20241108094512_simplecontent-20241108.cs b/src/cloudscribe.SimpleContent.Storage.EFCore.MySQL/Migrations/20241108094512_simplecontent-20241108.cs index 9b4f7337..8d00788b 100644 --- a/src/cloudscribe.SimpleContent.Storage.EFCore.MySQL/Migrations/20241108094512_simplecontent-20241108.cs +++ b/src/cloudscribe.SimpleContent.Storage.EFCore.MySQL/Migrations/20241108094512_simplecontent-20241108.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable @@ -13,25 +13,25 @@ protected override void Up(MigrationBuilder migrationBuilder) migrationBuilder.AddColumn( name: "ShowCreatedBy", table: "cs_Page", - type: "boolean(1)", + type: "tinyint(1)", nullable: true); migrationBuilder.AddColumn( name: "ShowCreatedDate", table: "cs_Page", - type: "boolean(1)", + type: "tinyint(1)", nullable: true); migrationBuilder.AddColumn( name: "ShowLastModifiedBy", table: "cs_Page", - type: "boolean(1)", + type: "tinyint(1)", nullable: true); migrationBuilder.AddColumn( name: "ShowLastModifiedDate", table: "cs_Page", - type: "boolean(1)", + type: "tinyint(1)", nullable: true); migrationBuilder.AddColumn( diff --git a/src/cloudscribe.SimpleContent.Storage.EFCore.MySQL/cloudscribe.SimpleContent.Storage.EFCore.MySQL.csproj b/src/cloudscribe.SimpleContent.Storage.EFCore.MySQL/cloudscribe.SimpleContent.Storage.EFCore.MySQL.csproj index d42c272f..eb4be28d 100644 --- a/src/cloudscribe.SimpleContent.Storage.EFCore.MySQL/cloudscribe.SimpleContent.Storage.EFCore.MySQL.csproj +++ b/src/cloudscribe.SimpleContent.Storage.EFCore.MySQL/cloudscribe.SimpleContent.Storage.EFCore.MySQL.csproj @@ -2,7 +2,7 @@ MySQL Entity Framework Core implementation of cloudscribe SimpleContent commands and queries - 8.3.0 + 8.3.1 net8.0 Joe Audette cloudscribe;commands;queries;ef diff --git a/src/sourceDev.WebApp/Config/CloudscribeFeatures.cs b/src/sourceDev.WebApp/Config/CloudscribeFeatures.cs index 631f496c..95abf1fa 100644 --- a/src/sourceDev.WebApp/Config/CloudscribeFeatures.cs +++ b/src/sourceDev.WebApp/Config/CloudscribeFeatures.cs @@ -25,7 +25,7 @@ IWebHostEnvironment env switch (storage) { case "efcore": - switch (efProvider) + switch (efProvider.ToLower()) { case "mysql": connectionString = config.GetConnectionString("MySqlEntityFrameworkConnection");