1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix issue with script plugins not reloading (AB#2)

fix issues with collation on MySQL (AB#1)
This commit is contained in:
RaidMax
2019-12-25 14:32:57 -06:00
parent f6c83ee4ed
commit 0405eec114
4 changed files with 1010 additions and 17 deletions

View File

@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace SharedLibraryCore.Migrations
{
public partial class SetCaseSensitiveCoallationForAliasNameMySQL : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
if (migrationBuilder.ActiveProvider == "Pomelo.EntityFrameworkCore.MySql")
{
// this prevents duplicate aliases from being added by changing it to case sensitive collation
migrationBuilder.Sql(@"ALTER TABLE `EFAlias` MODIFY
`Name` VARCHAR(24)
CHARACTER SET utf8
COLLATE utf8_bin;");
};
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}