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:
parent
336c548605
commit
d65ab39699
1 changed files with 1 additions and 1 deletions
|
@ -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;" );
|
||||
|
|
Loading…
Reference in a new issue