Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/SQL/Translator/Producer/Oracle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -678,9 +678,14 @@ sub alter_drop_constraint {
my @out = ('ALTER', 'TABLE', $table_name, 'DROP',);
if ($c->name) {
push @out, ('CONSTRAINT', quote($c->name, $qi));
if ($global_names{$c->name}) {
$global_names{$c->name}--; # Remove from global names so it can be used again
}
} elsif ($c->type eq PRIMARY_KEY) {
push @out, 'PRIMARY KEY';
}
debug("ORA: Dropping constraint " . join(' ', @out));

return join(' ', @out);
}

Expand Down