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:
parent
c50bb140a8
commit
1baa0c2876
|
|
@ -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});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue