Bug 24239: (QA follow-up) Make dbrev idempotent
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
5c665cfb24
commit
33e6256619
|
|
@ -1,15 +1,18 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => "24239",
|
||||
bug_number => "24239",
|
||||
description => "Add due_date to illrequests",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
# Do you stuffs here
|
||||
$dbh->do(q{
|
||||
ALTER TABLE `illrequests`
|
||||
ADD `due_date` datetime DEFAULT NULL AFTER `biblio_id`
|
||||
});
|
||||
|
||||
unless ( column_exists( 'illrequests', 'due_date' ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE `illrequests`
|
||||
ADD COLUMN `due_date` datetime DEFAULT NULL COMMENT 'Custom date due specified by backend, leave NULL for default date_due calculation'
|
||||
AFTER `biblio_id`
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue