https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20581
--- Comment #160 from Katrin Fischer <[email protected]> --- (In reply to Andrew Isherwood from comment #159) > Hmmm, prefixes feels like a hack. > > Using a composite primary key as you suggest might be a step in the right > direction. However, as I understand it, to then use that as a foreign key in > other tables would require each table to have a corresponding column for > each of the authorised_values columns that comprise the key. > > As an aside, I'm not convinced the category and authorised_value columns do > currently have any unique constraint on them. Looking at the schema, it > looks like category, authorised_value and lib are defined as keys, but I can > only think that was does to create indexes on them as there appears to be no > unique constraints on them. > > Definitely worth a discussion I think... It might only be enforced on GUI side. Jonathan worked on some of this as part of the move to Koha introducing the authorised_value_category table as a first step to improve the data structures. Looking at some of this code might be helpful? Note: In order to translate the code to a description you can use TT plugins. No needs to pass the descriptions usually - so that might avoid some of the issue? -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
