Bug 25861: Removing non-existent 'important' field from SQL
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 24 Jun 2020 21:08:16 +0000 (09:08 +1200)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 8 Jul 2020 03:28:25 +0000 (15:28 +1200)
commit6ca279130eacb98c2eb7ea8c4559b5ef4fd51af8
tree8d7ed74ef8d7062c17804b1959a80590105d264b
parent21c94b6144dd5ec7970911a811595dfb05dc15e1
Bug 25861: Removing non-existent 'important' field from SQL

Bug 17232 updated some SQL queries used when adding new MARC
bibliographic frameworks. When backported to 19.11.x, it referenced a
column `important` that does not exist in marc_tag_structure or
marc_subfield_structure in 19.11.x. This patch removes the references to
`important` so that adding new bibliographic frameworks works again.

To test:
1) Ensure you have checked out 19.11.x branch
2) Go to Admin -> MARC bibliographic frameworks
3) Add a new framework and save
4) Go to Actions -> MARC structure for your new framework
5) Use the 'create framework using' dropdown to import the structure
from an existing framework
6) Note that the structure does not populate, and there is now an error
in the logs "Unknown column 'important'"
7) Apply this patch and restart services
8) Repeat steps 3-5
9) Confirm the structure is populated correctly and there is no error in
the logs

Sponsored-by: Catalyst IT
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
admin/marctagstructure.pl