Skip to content
Snippets Groups Projects
Commit 2a9fe581 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction diff schema pour les séquences

parent 60b94fc3
No related branches found
No related tags found
No related merge requests found
Pipeline #29629 passed
...@@ -68,7 +68,13 @@ class SequenceManager extends AbstractManager implements SequenceManagerInterfac ...@@ -68,7 +68,13 @@ class SequenceManager extends AbstractManager implements SequenceManagerInterfac
public function alter(array $old, array $new): void public function alter(array $old, array $new): void
{ {
if ($old != $new) { [$oldSchema,$oldName] = Util::explodedFullObjectName($old);
[$newSchema,$newName] = Util::explodedFullObjectName($new);
$oldNormalized = Util::fullObjectName($oldSchema, $oldName);
$newNormalized = Util::fullObjectName($newSchema, $newName);
if ($oldNormalized != $newNormalized) {
if ($this->sendEvent()->getReturn('no-exec')) return; if ($this->sendEvent()->getReturn('no-exec')) return;
$this->drop($old); $this->drop($old);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment