Bug 36002: Database revision for aqorders.purchaseordernumber

Test plan:
Run dbrev. Check if field is no longer there.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Marcel de Rooy 2024-02-06 13:32:28 +00:00 committed by Katrin Fischer
parent c50bb140a8
commit 1baa0c2876
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 13 additions and 1 deletions

View File

@ -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});
}
},
};

View File

@ -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',