Bug 13515: Fix constraint name before deleting it
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
11b9bb3da9
commit
1f23384475
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
|
||||
unless( foreign_key_exists( 'messages', 'borrowernumber' ) ) {
|
||||
unless( foreign_key_exists( 'messages', 'messages_borrowernumber' ) ) {
|
||||
$dbh->do(q|
|
||||
DELETE m FROM messages m
|
||||
LEFT JOIN borrowers b ON m.borrowernumber=b.borrowernumber
|
||||
|
|
Loading…
Reference in a new issue