Bug 35687: Fix db rev for 23.06.00.013
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
a3accea1dd
commit
aadb617235
1 changed files with 7 additions and 1 deletions
|
@ -8,8 +8,14 @@ return {
|
|||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
unless ( primary_key_exists( 'tmp_holdsqueue', 'itemnumber' ) ) {
|
||||
$dbh->do(q{ALTER TABLE tmp_holdsqueue DROP CONSTRAINT `tmp_holdsqueue_ibfk_1`});
|
||||
$dbh->do(q{ALTER TABLE tmp_holdsqueue ADD PRIMARY KEY (itemnumber)});
|
||||
$dbh->do(
|
||||
q{ALTER TABLE tmp_holdsqueue ADD PRIMARY KEY (itemnumber)}
|
||||
q{
|
||||
ALTER TABLE tmp_holdsqueue ADD CONSTRAINT `tmp_holdsqueue_ibfk_1`
|
||||
FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`)
|
||||
ON DELETE CASCADE ON UPDATE CASCADE
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue