Bugzilla – Attachment 140708 Details for
Bug 15348
Change/Edit estimated delivery date per order line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15348: (QA follow-up) DB update fixes
Bug-15348-QA-follow-up-DB-update-fixes.patch (text/plain), 3.04 KB, created by
Tomás Cohen Arazi
on 2022-09-16 13:55:27 UTC
(
hide
)
Description:
Bug 15348: (QA follow-up) DB update fixes
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2022-09-16 13:55:27 UTC
Size:
3.04 KB
patch
obsolete
>From 04319ef5a0b2462f71bf5f9e6762319b4bbf542c Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 16 Sep 2022 10:54:54 -0300 >Subject: [PATCH] Bug 15348: (QA follow-up) DB update fixes > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > ...8-add_aqorders.estimated_delivery_date.perl | 9 --------- > installer/data/mysql/atomicupdate/bug_15348.pl | 18 ++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 3 files changed, 19 insertions(+), 10 deletions(-) > delete mode 100644 installer/data/mysql/atomicupdate/bug_15348-add_aqorders.estimated_delivery_date.perl > create mode 100644 installer/data/mysql/atomicupdate/bug_15348.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_15348-add_aqorders.estimated_delivery_date.perl b/installer/data/mysql/atomicupdate/bug_15348-add_aqorders.estimated_delivery_date.perl >deleted file mode 100644 >index f7c9840ef2..0000000000 >--- a/installer/data/mysql/atomicupdate/bug_15348-add_aqorders.estimated_delivery_date.perl >+++ /dev/null >@@ -1,9 +0,0 @@ >-use Date::Calc qw( Add_Delta_Days ); >-$DBversion = 'XXX'; >-if( CheckVersion( $DBversion ) ) { >- unless( column_exists( 'aqorders', 'estimated_delivery_date' ) ) { >- $dbh->do(q{ ALTER TABLE aqorders ADD estimated_delivery_date date default null AFTER suppliers_report }); >- >- NewVersion( $DBversion, 15348, "Add new column aqorders.estimated_delivery_date" ); >- } >-} >diff --git a/installer/data/mysql/atomicupdate/bug_15348.pl b/installer/data/mysql/atomicupdate/bug_15348.pl >new file mode 100644 >index 0000000000..419ed2dcd0 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_15348.pl >@@ -0,0 +1,18 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "15348", >+ description => "Add new column aqorders.estimated_delivery_date", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ unless ( column_exists( 'aqorders', 'estimated_delivery_date' ) ) { >+ $dbh->do(q{ >+ ALTER TABLE aqorders >+ ADD estimated_delivery_date date DEFAULT NULL COMMENT 'Estimated delivery date' >+ AFTER suppliers_report >+ }); >+ } >+ }, >+}; >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 32b30f1786..ff7cdc626a 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -693,7 +693,7 @@ CREATE TABLE `aqorders` ( > `suppliers_reference_number` varchar(35) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Suppliers unique edifact quote ref', > `suppliers_reference_qualifier` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Type of number above usually ''QLI''', > `suppliers_report` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'reports received from suppliers', >- `estimated_delivery_date` date default null, >+ `estimated_delivery_date` date DEFAULT NULL COMMENT 'Estimated delivery date', > PRIMARY KEY (`ordernumber`), > KEY `basketno` (`basketno`), > KEY `biblionumber` (`biblionumber`), >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15348
:
114430
|
114583
|
114623
|
115121
|
115122
|
115123
|
115124
|
116517
|
118788
|
118789
|
119297
|
119298
|
119299
|
120653
|
120654
|
120655
|
120656
|
136560
|
136561
|
136562
|
136563
|
137057
|
137058
|
137061
|
137098
|
137099
|
137740
|
137741
|
137742
|
137743
|
138110
|
138491
|
138529
|
138530
|
138531
|
138532
|
138533
|
138534
|
138535
|
138536
|
138537
|
138538
|
138539
|
138540
|
139245
|
139274
|
139301
|
139329
|
139330
|
139331
|
139332
|
139333
|
139334
|
139335
|
139336
|
139337
|
139338
|
139339
|
139340
|
139341
|
139342
|
139343
|
139351
|
139352
|
139353
|
139354
|
139355
|
139356
|
139357
|
139358
|
139359
|
139360
|
139361
|
139362
|
139363
|
139364
|
139365
|
139831
|
139832
|
139833
|
139834
|
139835
|
139836
|
139837
|
139838
|
139839
|
139840
|
139841
|
139842
|
139843
|
139844
|
139845
| 140708 |
140735
|
143896
|
143900
|
143903
|
143904