Commit Graph

2758 Commits

Author SHA1 Message Date
wainuiwitikapark 2283abc42b Bug 38522: DBRev 23.11.10.005
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
(cherry picked from commit 279d05ceae)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-18 16:57:20 +01:00
Andrew Fuerste Henry a4a096fe1d Bug 38522: (follow-up) Edit db_rev and preserve comment
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 1a4820322e)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
(cherry picked from commit 20c22b5488)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-18 16:55:09 +01:00
Andrew Fuerste Henry 0b363e9df8 Bug 38522: Increase erm_agreements.license_info length
to test:
1- try to save an agreement with 81+ characters in License Info
2- it does not save
3- apply patch, updatedatabase
4- repeat 1, it works!

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2512392b2a)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
(cherry picked from commit b0693468ff)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-18 16:55:09 +01:00
Lucas Gass b615e56388 Bug 37856: DBRev 23.11.10.004
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1fb5bc4d83)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-18 10:21:28 +01:00
Nick Clemens 7614ed0f1f Bug 37856: (QA follow-up) Tidy
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit b7600e4801)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2e9a6b16f9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-18 10:16:51 +01:00
Pedro Amorim 2b7314076d Bug 37856: atomicupdate
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2e4b1ca42f)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 8e4ed8d701)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-18 10:16:51 +01:00
Lucas Gass 0b01819c32 Bug 38274: DBRev 24.05.05.005
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 889c351d17)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-13 16:32:42 +01:00
Fridolin Somers 97dc9f3a00 Bug 38274: Fix typo in arabic language description
In installer/data/mysql/mandatory/subtag_registry.sql we see a missing
char in arabic language description.

Wee see this was correct before Bug 12250 :
&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;

Test plan :
1) Install a fresh Koha with this patch
2) Look in database :
   SELECT * FROM language_descriptions WHERE subtag='ar' AND type='language' AND lang='ar'
=> Check description is correct
3) On a old existing Koha
4) Install patch and run update database
=> Look in database and check description is correct

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4e1dc5e8b7)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ec93915064)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-13 16:31:59 +01:00
Lucas Gass 77207f400a Bug 37954: DBRev 23.11.10.002
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit be96ec063f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-11 16:12:30 +01:00
Nick Clemens ac71426e33 Bug 37954: Atomic update
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4355f54f5c)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit a58c132a16)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-12-11 16:02:59 +01:00
Lucas Gass e850168763 Bug 36822: DBRev 23.11.10.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit b82e05de36)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-11-27 10:08:10 +01:00
Martin Renvoize b8a3bf5a54 Bug 36822: (follow-up) Catch MySQL 8 failure in update
We add a CAST to the fetch of 0000-00-00 dates in the database. This
prevents an error in MySQL 8.0 throws htat aborts the update.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 36a387db22)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 3b20194428)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-11-27 10:03:51 +01:00
Pedro Amorim f3b8b810f4 Bug 36822: atomicupdate
Fix any existing updated_on issues

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 473f918ba8)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 4c15fb996d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-11-27 10:03:51 +01:00
Lucas Gass eb01f7d449 Bug 29509: DBRev 23.11.08.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 901c918ff4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-09-10 15:24:45 +02:00
Kyle M Hall fbd1ad8013 Bug 29509: (QA follow-up) Tidy atomic update
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 0505531cde)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 95082c34db)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-09-10 15:17:57 +02:00
Martin Renvoize c0f2069d39 Bug 29509: (QA follow-up) Check top level permissions too
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 56c7c3782b)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit b33b9b5f61)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-09-10 15:17:57 +02:00
Martin Renvoize af81d2bf65 Bug 29509: Update swagger specification and add permissions to users
This patch removes the 'edit_borrowers', 'manage_bookings',
'lable_creator', 'routing' and 'order_manage' permissions from the list
of options in the patrons list endpoint.

We then assign the new 'list_borrowers' permission to any users who have
those removed permissions

Test plan
1) Apply patch and run the database update
2) Users with any of the permissions listed above should now also have
   the 'list_borrowers' permission too.
3) Check that patron searching continues to work from the various
   locations in the UI for the above affected users

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
[EDIT] Incorporated second patch and removed 1<<4. 16 reads much better :)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 85ea79c45b)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 435211adbc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-09-10 15:17:57 +02:00
Katrin Fischer 66263bd9d8 Bug 36819: DBRev 23.11.06.001
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4da0f36f2f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-07-19 11:02:31 +02:00
Martin Renvoize 38f53f19a7 Bug 36819: (QA follow-up) Improve update output
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 142a5ba2a7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-07-19 11:01:28 +02:00
Caroline Cyr La Rose 020f28a79f Bug 36819: (follow-up) Updatedatabase to correct wrong value
This patch adds an update to correct the value of scale_width to
0.800000 IF it is 0.080000. It should not change the value if it
is anything else than 0.080000.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 83095ebc4e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-07-19 11:01:28 +02:00
Martin Renvoize 600ec9c9a3 Bug 36986: DBRev 23.11.05.010
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 1c779aaca8)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-06-06 10:57:29 +02:00
Martin Renvoize 29d7356551 Bug 36986: (QA follow-up) Catch the case where someone already upgraded
This adds a corresponding atomic update for the case where someone may
have already upgraded past the version we're correcting in the prior
patch.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit d0f1298951)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-06-06 10:56:27 +02:00
Katrin Fischer 84aa595810 Bug 26176: DBRev 23.11.05.009
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit eb2e01c173)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-06-06 10:53:40 +02:00
Martin Renvoize 26e6ba5435 Bug 26176: (follow-up) Use suggested patturn in update
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c5d05e5ee0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-06-06 10:53:04 +02:00
Martin Renvoize d926f3a8d6 Bug 26176: (QA follow-up) Also rename StaffLoginBranchBasedOnIP
This patch also renames StaffLoginBranchBasedOnIP to
StaffLoginLibraryBasedOnIP to be consistent with our terminology
guidelines

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 0a17e7181e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-06-06 10:53:04 +02:00
Martin Renvoize c360d5e3a2 Bug 26176: (QA follow-up) Branch -> Library
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f8915dc6e7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-06-06 10:53:04 +02:00
Nick Clemens 902c5a47a5 Bug 26176: Rename AutoLocation to StaffLoginRestrictBranchByIP
This patch sets AutoLocation to be called StaffLoginRestrictBranchByIP.
The new name is chosen to reflect the new pref StaffLoginBranchBasedOnIP.

Also this patch corrects the order of sysprefs in installer file.

To test:
Follow test plans on bug 36665 and bug 35890 and confirm that the preferences
continue to work as expected
Confirm the descriptions of the prefs in the staff interface match the behaviors expected

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 8b2bdf6ee5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-06-06 10:53:04 +02:00
Katrin Fischer 710bd67ae6 Bug 36665: DBRev 23.11.05.008
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 3a8e38b449)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-29 16:21:51 +02:00
Nick Clemens 6f4632ef04 Bug 36665: Add option to set the staff user's logged in branch based on their current ip
This patch adds a new system preference StaffLoginBranchBasedOnIP which restores the behaviour before bug 35918
of using the current IP to determine the user's logged in branchcode

To test:
 1 - Get your current ip
 2 - Set that IP for a library in the administration section
 3 - Find a user account assigned to a different library that can login to staff side
 4 - Login to staff as that user, select 'My library'
 5 - You are logged in to the user's branch
 6 - Apply patch, restart all
 7 - Log out and back in, selecting 'My library'
 8 - You are logged in to the user's branch
 9 - Enable new system preference StaffLoginBranchBasedOnIP
 9 - Log out and back in, selecting a different branch, noting the new warning below the library selection
10 - You are logged in to the branch with the matching IP
11 - Log out and back in, selecting 'My library'
10 - You are logged in to the branch with the matching IP
11 - Change your logged in branch
12 - Verify the selection sticks and you can perform staff actions in the chosen branch
13 - Change the IP of the library to one that doesn't match yours
14 - Verify you can log out and log back in and that selected branch is respected when your IP doesn't match library IP

Signed-off-by: Kristi Krueger <KKRUEGER@cuyahogalibrary.org>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 3a0d6f5d07)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-29 16:16:14 +02:00
Katrin Fischer e8e40c861c Bug 35149: DBRev 23.11.05.007
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2b3ad46f97)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-29 11:26:39 +02:00
David Gustafsson e6418092a8 Bug 35149: Change CircAutoPrintQuickSlip syspref explanation
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 42d95f362a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-29 11:25:58 +02:00
Katrin Fischer b3da044e46 Bug 36687: DBRev 23.11.05.006
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 3f9551b0c6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-24 16:55:06 +02:00
Lucas Gass 85e37d730f Bug 36687: Update itemtypes.notforloan to not allow NULL values and change to tinyint(1)
To test:
1. Have some itemtypes.notforloan values set to NULL.
2. APPLY PACTH, updatedatabase, restart_all
3. When you updatedatabase those values should be set to 0.
4. Try updating an itemtypes.notforloan value to NULL. You cannot.

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit d267e2fe17)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-24 16:54:32 +02:00
Katrin Fischer a0eabd2817 Bug 35973: DBRev 23.11.05.005
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 6f705dfb1f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 15:44:29 +02:00
Nick Clemens 61de9fdeaf Bug 35973: (QA follow-up) Ad exec flag to update
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit b6a4aa541f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 15:43:39 +02:00
Katrin Fischer fc05305694 Bug 35973: Correct wrong values for RedirectGuaranteeEmail system preference
The system preferences was added with 0/1 in sysprefs.sql is checked
as boolean. But the .pref file was added with yes/no which both
evaluate as strings to true.

This fixes the .pref file and includes a database update that sets
0 and 1 correctly for the value currently chosen in the pref.

To test:
* Make sure to update RedirectGuaranteeEmail to Enable/Don't enable
  before applying the patch
* Verify in the database, that the values was set to yes or no
  You can use a report like:
    SELECT * from systempreferences WHERE variable = "RedirectGuaranteeEmail";
* Apply patch and run database update
* Verify the value in the database was corrected:
  Yes = 1, No = 0
* Change the setting, verify the new value is stored correctly

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 34c85d051d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 15:43:39 +02:00
Katrin Fischer 5b66a82afe Bug 32707: DBRev 23.11.05.004
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c57e25a408)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 14:06:22 +02:00
Janusz Kaczmarek 5cfc951fc5 Bug 32707: Add 'ESPreventAutoTruncate' preference
This patch adds a new 'ESPreventAutoTruncate' preference allowing to define
Elasticsearch search fields that should not be autotruncated when 'QueryAutoTruncate'
is active (e.g. barcode).

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 10b43ddd64)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 14:05:51 +02:00
Katrin Fischer dd20e94a9a Bug 36409: DBRev 23.11.05.003
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit a97565a6d2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 13:52:21 +02:00
Emily Lamancusa f973193830 Bug 36409: Dbrev for existing installations
Dbrev to change EMail to Email for SerialsDefaultEMailAddress and
AcquisitionsDefaultEMailAddress

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 43e480255d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 13:51:39 +02:00
Katrin Fischer 974d423750 Bug 35610: DBRev 23.11.05.002
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 56491caa5f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 10:55:09 +02:00
Victor Grousset/tuxayo fc4114312f Bug 35610: (QA follow-up): tidy up code
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 7c0c2939cb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 10:54:30 +02:00
Jonathan Druart c97c758bd4 Bug 35610: Set branchcode to NULL before adding the FK
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 495f0d2caa)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 10:54:30 +02:00
Jonathan Druart 0a534f736a Bug 35610: Add FK on old_reserves.branchcode
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 943838ed99)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-23 10:54:30 +02:00
Katrin Fischer e04518f050 Bug 36033: DBRev 23.11.05.001
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 6a6db6aa7c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-22 15:46:17 +02:00
Fridolin Somers 6ba45bc290 Bug 36033: Add more indexes to table pseudonymized_transactions
Table pseudonymized_transactions contains :
  KEY `pseudonymized_transactions_ibfk_1` (`categorycode`),
  KEY `pseudonymized_transactions_borrowers_ibfk_2` (`branchcode`),
  KEY `pseudonymized_transactions_borrowers_ibfk_3` (`transaction_branchcode`)

To improve SQL queries performance, it needs more indexes, specially on itemnumber.

Looking at table statistics :
  KEY `timeidx` (`datetime`),
  KEY `branch_idx` (`branch`),
  KEY `type_idx` (`type`),
  KEY `itemnumber_idx` (`itemnumber`),

So index is need on pseudonymized_transactions columns :
itemnumber => For join with table items
transaction_type => For filter on type issue, return ...
datetime => For filter on date, this will help cleanup script

Test plan :
1) Run updatedatabase.pl
2) Check indexes are created in table pseudonymized_transactions
3) Run SQL query :
   describe select * from pseudonymized_transactions join items using(itemnumber)
   where transaction_type='issue' and datetime < date_sub(curdate(), INTERVAL 30 DAY)
=> You see the 3 new indexes used in 'possible_keys'.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 0573d01eaa)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-22 15:44:58 +02:00
Fridolin Somers 9c8fb67d30 Bug 36244: DBRev 23.11.03.001 2024-03-27 07:54:16 +01:00
Kyle M Hall 2828ea756d Bug 36244: Add atomic update to check for affected notices
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Fixed some typos in bug numbers and text.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2e18611b7d8527c7ff9253a7669aad2c13a5afb0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-03-27 07:54:16 +01:00
Katrin Fischer b6b843863b Bug 30230: DBRev 23.11.02.003
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 1a6686cb99)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-02-01 16:25:54 +01:00
Thibaud Guillot 9c88f23ea6 Bug 30230: (follow-up) Add list permission on home-search include and update atomic update file
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 8c32b44df5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-02-01 16:22:55 +01:00