Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzforever committed Aug 13, 2024
1 parent b454807 commit f8912d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/SecurityTokenService/WebApplicationBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,28 +141,26 @@ public static WebApplicationBuilder AddDataProtection(this WebApplicationBuilder
using var conn = new MySqlConnection(connectionString);
conn.Execute(
$"""
create table if not exists system_data_protection_keys
create table if not exists system_data_protection_key
(
id int auto_increment primary key,
friendly_name varchar(64) not null,
xml varchar(2000) not null
);
"""
);
Console.WriteLine("创建 MySql system_data_protection_keys 表成功");
}
else
{
using var conn = new NpgsqlConnection(connectionString);
conn.Execute($"""
create table if not exists system_data_protection_keys
create table if not exists system_data_protection_key
(
id int auto_increment primary key,
friendly_name varchar(64) not null,
xml varchar(2000) not null
);
""");
Console.WriteLine("创建 Postgre system_data_protection_keys 表成功");
}

// 影响隐私数据加密、AntiToken 加解密
Expand Down

0 comments on commit f8912d6

Please sign in to comment.