Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
koha-docker
Commits
4f55cbec
Commit
4f55cbec
authored
Jun 05, 2018
by
Benjamin Rokseth
Browse files
Deactivate purresaker cronjobs and table generation for this sprint
parent
4a6cab73
Changes
3
Hide whitespace changes
Inline
Side-by-side
files/cronjobs/daily-koha-common
View file @
4f55cbec
...
...
@@ -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
...
...
files/cronjobs/deichman-koha-common.tmpl
View file @
4f55cbec
...
...
@@ -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
...
...
files/installer/installer.sh
View file @
4f55cbec
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment