Bug 19532: Make recalls.status an ENUM
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 11 Mar 2022 15:20:18 +0000 (12:20 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 15 Mar 2022 08:45:52 +0000 (22:45 -1000)
commitea6eb301a6aa89b1749f71063ed21cc8c503a5e7
treec24f3ecb8f90285067c3358ab5602225c57e0c89
parente550f657f1fb9defef4b59668bfbe2cfdc44218c
Bug 19532: Make recalls.status an ENUM

This patch makes the status attribute an ENUM, setting the default value
as 'requested' as well. The chosen names are easier to read than single
letters. Also, renamed F into fulfilled (this impacts methods names as
well). This is because 'finished' or 'completed' is more a synonym for
old => 1...

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
17 files changed:
C4/Circulation.pm
C4/Overdues.pm
C4/XSLT.pm
Koha/Item.pm
Koha/Recall.pm
Koha/Recalls.pm
installer/data/mysql/atomicupdate/bug_19532_make_status_enum.pl [new file with mode: 0755]
installer/data/mysql/kohastructure.sql
t/db_dependent/Circulation.t
t/db_dependent/Circulation/CalcFine.t
t/db_dependent/Circulation/transferbook.t
t/db_dependent/Koha/Biblio.t
t/db_dependent/Koha/Item.t
t/db_dependent/Koha/Patron.t
t/db_dependent/Koha/Recall.t
t/db_dependent/Koha/Recalls.t
t/db_dependent/XSLT.t