1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Warn about failed type export

This commit is contained in:
Jakub Vrana
2025-03-03 05:17:00 +01:00
parent c1704d83c1
commit dfe3cc1888

View File

@@ -57,6 +57,8 @@ SET foreign_key_checks = 0;
$enums = type_values($id);
if ($enums) {
$out .= ($style != 'DROP+CREATE' ? "DROP TYPE IF EXISTS " . idf_escape($type) . ";;\n" : "") . "CREATE TYPE " . idf_escape($type) . " AS ENUM ($enums);\n\n";
} else {
$out .= "-- Could not export type $type\n\n";
}
}
}