Bug 21129: Fix typo created vs created_by

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2018-07-31 10:09:40 -03:00 committed by Tomas Cohen Arazi
parent 336c548605
commit d65ab39699

View file

@ -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;" );