fix: align postgres core export schema

This commit is contained in:
fawney19
2026-05-06 00:20:06 +08:00
parent 6dd7464793
commit 8043cca126
8 changed files with 611 additions and 60 deletions

View File

@@ -142,7 +142,7 @@ SELECT
api_formats,
auth_type_by_format,
allow_auth_channel_mismatch_formats,
api_key,
COALESCE(api_key, encrypted_key) AS api_key,
auth_config,
note,
internal_priority,
@@ -201,7 +201,7 @@ SELECT
api_formats,
auth_type_by_format,
allow_auth_channel_mismatch_formats,
api_key,
COALESCE(api_key, encrypted_key) AS api_key,
auth_config,
note,
internal_priority,
@@ -602,7 +602,7 @@ SELECT
api_formats,
auth_type_by_format,
allow_auth_channel_mismatch_formats,
api_key,
COALESCE(api_key, encrypted_key) AS api_key,
auth_config,
note,
internal_priority,
@@ -2607,7 +2607,9 @@ mod tests {
let source = include_str!("postgres.rs");
assert!(
source
.matches("auth_type_by_format,\n allow_auth_channel_mismatch_formats,\n api_key",)
.matches(
"auth_type_by_format,\n allow_auth_channel_mismatch_formats,\n COALESCE(api_key, encrypted_key) AS api_key",
)
.count()
>= 3
);