From d65ab39699c0406f7438e2c7f1d0d36e233f2d7b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 31 Jul 2018 10:09:40 -0300 Subject: [PATCH] Bug 21129: Fix typo created vs created_by Signed-off-by: Josef Moravec Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index c4ca176865..24e78f5e91 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16129,7 +16129,7 @@ if( CheckVersion( $DBversion ) ) { $DBversion = '18.06.00.005'; if( CheckVersion( $DBversion ) ) { - unless ( column_exists('aqorders', 'created') ) { + unless ( column_exists('aqorders', 'created_by') ) { $dbh->do( "ALTER TABLE aqorders ADD COLUMN created_by int(11) NULL DEFAULT NULL AFTER quantityreceived;" ); unless ( foreign_key_exists('aqorders', 'aqorders_created_by') ) { $dbh->do( "ALTER TABLE aqorders ADD CONSTRAINT aqorders_created_by FOREIGN KEY (created_by) REFERENCES borrowers (borrowernumber) ON DELETE SET NULL ON UPDATE CASCADE;" ); -- 2.39.5