Bugzilla – Attachment 161779 Details for
Bug 36002
Get rid of aqorders.purchaseordernumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36002: Database revision for aqorders.purchaseordernumber
Bug-36002-Database-revision-for-aqorderspurchaseor.patch (text/plain), 2.21 KB, created by
Marcel de Rooy
on 2024-02-06 13:55:03 UTC
(
hide
)
Description:
Bug 36002: Database revision for aqorders.purchaseordernumber
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-02-06 13:55:03 UTC
Size:
2.21 KB
patch
obsolete
>From 040a5ff25c3451a569fc2dd200c75d01bbddaacb Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 6 Feb 2024 13:32:28 +0000 >Subject: [PATCH] Bug 36002: Database revision for aqorders.purchaseordernumber >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run dbrev. Check if field is no longer there. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/atomicupdate/bug_36002.pl | 13 +++++++++++++ > installer/data/mysql/kohastructure.sql | 1 - > 2 files changed, 13 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_36002.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_36002.pl b/installer/data/mysql/atomicupdate/bug_36002.pl >new file mode 100755 >index 0000000000..188c48e7e7 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_36002.pl >@@ -0,0 +1,13 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => 36002, >+ description => "Remove aqorders.purchaseordernumber", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ if ( column_exists( 'aqorders', 'purchaseordernumber' ) ) { >+ $dbh->do(q{ALTER TABLE aqorders DROP COLUMN purchaseordernumber}); >+ } >+ }, >+}; >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 16310f0f44..b1a5280b91 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -739,7 +739,6 @@ CREATE TABLE `aqorders` ( > `cancellationreason` mediumtext DEFAULT NULL COMMENT 'reason of cancellation', > `order_internalnote` longtext DEFAULT NULL COMMENT 'notes related to this order line, made for staff', > `order_vendornote` longtext DEFAULT NULL COMMENT 'notes related to this order line, made for vendor', >- `purchaseordernumber` longtext DEFAULT NULL COMMENT 'not used? always NULL', > `basketno` int(11) DEFAULT NULL COMMENT 'links this order line to a specific basket (aqbasket.basketno)', > `timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'the date and time this order line was last modified', > `rrp` decimal(13,2) DEFAULT NULL COMMENT 'the retail cost for this line item', >-- >2.30.2
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 36002
:
161779
|
161780
|
161781
|
161782
|
164938
|
164939
|
164940
|
164941
|
165386
|
165387
|
165388
|
165389
|
165853