Skip to content
Snippets Groups Projects
Commit 21e5087e authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction du SQL pour la génération des contraintes de référence.

parent fb2f6dbd
No related branches found
No related tags found
No related merge requests found
Pipeline #4237 passed
......@@ -127,6 +127,7 @@ class SchemaService
}
$sql = implode('', $result);
var_dump($result, $sql);
$sql = str_replace("\"$srcSchemaName\"", "\"$dstSchemaName\"", $sql);
file_put_contents($outputFilePath, $sql);
}
......@@ -450,6 +451,9 @@ EOS;
$schemaName = $this->extractSchemaNameFromConnection($connection);
return <<<EOS
SELECT sql from (
--
-- reference constraints
--
......@@ -464,6 +468,8 @@ EOS;
where owner = '$schemaName'
and constraint_type = 'R'
)
ORDER BY ORD
EOS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment