feat(i18n): persist Bokmal preference globally
This commit is contained in:
@@ -40,6 +40,9 @@ public sealed class MigrationChainTests
|
||||
SELECT COUNT(*) FROM pragma_table_info('AspNetUsers')
|
||||
WHERE name = 'EmailFollowUpRemindersEnabled' AND dflt_value IN ('1', 'true');
|
||||
"""));
|
||||
Assert.Equal(1, await ScalarAsync<long>(connection, """
|
||||
SELECT COUNT(*) FROM pragma_table_info('AspNetUsers') WHERE name = 'UiLanguage';
|
||||
"""));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -93,6 +96,7 @@ public sealed class MigrationChainTests
|
||||
Assert.Contains("CONSTRAINT `FK_AccountDeletionFiles_Request`", script, StringComparison.Ordinal);
|
||||
Assert.Contains("CREATE TABLE IF NOT EXISTS `AspNetUsers`", script, StringComparison.Ordinal);
|
||||
Assert.Contains("CREATE TABLE IF NOT EXISTS `AiInteractions`", script, StringComparison.Ordinal);
|
||||
Assert.Contains("`UiLanguage` varchar(16)", script, StringComparison.Ordinal);
|
||||
Assert.All(
|
||||
Regex.Matches(script, "CONSTRAINT `([^`]+)`").Select(match => match.Groups[1].Value),
|
||||
identifier => Assert.True(identifier.Length <= 64, $"MariaDB constraint identifier exceeds 64 characters: {identifier}"));
|
||||
|
||||
Reference in New Issue
Block a user