diff options
author | crupest <crupest@outlook.com> | 2022-12-25 18:01:48 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-25 18:01:48 +0800 |
commit | 5a163e8ced3cb02d4e05c11f6d68977c92420bde (patch) | |
tree | 864f440b62899816713a09fecafebaacc4a7081c /docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs | |
parent | c8e6e2081b6d1a1b1f4b7ddd8923e2af70f82e29 (diff) | |
download | crupest-5a163e8ced3cb02d4e05c11f6d68977c92420bde.tar.gz crupest-5a163e8ced3cb02d4e05c11f6d68977c92420bde.tar.bz2 crupest-5a163e8ced3cb02d4e05c11f6d68977c92420bde.zip |
Add migration. v2.0
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs index b8a1bbe..c693d8d 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Secrets/SecretService.cs @@ -14,11 +14,11 @@ public class SecretService : CrudService<SecretInfo>, ISecretService _logger = loggerFactory.CreateLogger<SecretService>(); } - protected override void AfterMigrate(IDbConnection connection, TableInfo table, ILoggerFactory loggerFactory) + protected override void AfterMigrate(IDbConnection connection, TableInfo table) { if (table.SelectCount(connection) == 0) { - loggerFactory.CreateLogger<SecretService>().LogInformation("No secrets found, insert default secrets."); + _logger.LogInformation("No secrets found, insert default secrets."); using var transaction = connection.BeginTransaction(); var insertClause = InsertClause.Create() .Add(nameof(SecretInfo.Key), SecretsConstants.SecretManagementKey) |