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

PostgreSQL: Add missing CHECK in export

This commit is contained in:
Jakub Vrana
2025-02-26 19:56:16 +01:00
parent a603de853d
commit f81658ecfe

View File

@@ -823,7 +823,7 @@ AND typelem = 0"
}
foreach ($driver->checkConstraints($table) as $conname => $consrc) {
$return_parts[] = "CONSTRAINT " . idf_escape($conname) . " $consrc";
$return_parts[] = "CONSTRAINT " . idf_escape($conname) . " CHECK $consrc";
}
$return .= implode(",\n ", $return_parts) . "\n) WITH (oids = " . ($status['Oid'] ? 'true' : 'false') . ");";