5 description => "Add article request fees",
8 my ( $dbh, $out ) = @$args{qw(dbh out)};
10 if ( !column_exists( 'article_requests', 'debit_id' ) ) {
14 ALTER TABLE `article_requests`
15 ADD COLUMN `debit_id` int(11) NULL DEFAULT NULL COMMENT 'Debit line with cost for article scan request' AFTER `cancellation_reason`
21 ALTER TABLE `article_requests`
22 ADD CONSTRAINT `article_requests_ibfk_5` FOREIGN KEY (`debit_id`) REFERENCES `accountlines` (`accountlines_id`) ON DELETE SET NULL ON UPDATE CASCADE
29 INSERT IGNORE INTO account_debit_types ( code, description, can_be_invoiced, can_be_sold, default_amount, is_system )
30 VALUES ('ARTICLE_REQUEST', 'Article request fee', 0, 0, NULL, 1);