Commit 4f55cbec authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

Deactivate purresaker cronjobs and table generation for this sprint

parent 4a6cab73
......@@ -16,8 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
koha-foreach --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl
# koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl # replaced by /cronjobs/purresaker.pl
# koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t # replaced by /cronjobs/overdue_messages.pl
koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl # to be replaced by /cronjobs/purresaker.pl
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t # to be replaced by /cronjobs/overdue_messages.pl
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_notices.pl -c -itemscontent title,author
koha-foreach --enabled /usr/share/koha/bin/cronjobs/membership_expiry.pl -c
koha-foreach --enabled /usr/share/koha/bin/cronjobs/j2a.pl -v -f=B -t=V
......
......@@ -81,8 +81,8 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# purresaker and overdue messages
# Replacing fines.pl cronjob, managing purresaker and purresaker_issues table - fines and overdue messages for patrons
##############
40 0 * * * root koha-foreach --enabled /cronjobs/purresaker.pl
55 0 * * * root koha-foreach --enabled /cronjobs/overdue_messages.pl
#40 0 * * * root koha-foreach --enabled /cronjobs/purresaker.pl
#55 0 * * * root koha-foreach --enabled /cronjobs/overdue_messages.pl
##############
# Run sql reports to email
......
......@@ -200,35 +200,35 @@ EOF
EXIT_CODE=$?
fi
VERSION=17.1105000
if expr "$CURRENTDBVERSION" '<=' "$VERSION" 1>/dev/null ; then
echo "Setting up purresaker tables ..."
cat <<-EOF | koha-mysql $(koha-list --enabled)
/*
* create table purresaker and purresaker_issues (unless exists)
*/
CREATE TABLE IF NOT EXISTS purresaker (
purre_id int(16) NOT NULL AUTO_INCREMENT,
nets_id varchar(100),
amount double,
borrowernumber int(11) NOT NULL,
status enum('open','reserved','captured') DEFAULT 'open',
done tinyint(1) NOT NULL DEFAULT 0,
timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (purre_id),
KEY purre_borroweridx (borrowernumber)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS purresaker_issues (
purre_id int(16),
issue_id int(11) NOT NULL,
PRIMARY KEY (purre_id,issue_id),
CONSTRAINT purreid_fk_1 FOREIGN KEY (purre_id) REFERENCES purresaker (purre_id) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
EOF
EXIT_CODE=$?
fi
# VERSION=17.1105000
# if expr "$CURRENTDBVERSION" '<=' "$VERSION" 1>/dev/null ; then
# echo "Setting up purresaker tables ..."
# cat <<-EOF | koha-mysql $(koha-list --enabled)
# /*
# * create table purresaker and purresaker_issues (unless exists)
# */
# CREATE TABLE IF NOT EXISTS purresaker (
# purre_id int(16) NOT NULL AUTO_INCREMENT,
# nets_id varchar(100),
# amount double,
# borrowernumber int(11) NOT NULL,
# status enum('open','reserved','captured') DEFAULT 'open',
# done tinyint(1) NOT NULL DEFAULT 0,
# timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
# PRIMARY KEY (purre_id),
# KEY purre_borroweridx (borrowernumber)
# ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
# CREATE TABLE IF NOT EXISTS purresaker_issues (
# purre_id int(16),
# issue_id int(11) NOT NULL,
# PRIMARY KEY (purre_id,issue_id),
# CONSTRAINT purreid_fk_1 FOREIGN KEY (purre_id) REFERENCES purresaker (purre_id) ON UPDATE CASCADE
# ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
# EOF
# EXIT_CODE=$?
# fi
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment