Jonathan Druart
d8dd31142c
The table borrower_modifications has no FK constraint on the borrowernumber and will remain untouched when the patron is deleted. If the borrowernumber doesn't exist in the database, the modification entry is no longer visible in Koha. The problem is that this table is used for the borrower modifications and the self-registration features. So far borrowernumber is the PK (int(11) NOT NULL DEFAULT '0'), for the self-registration feature we can have borrowernumber that is not defined (0 is used) Ideally we would like to have borrowernumber a DEFAULT NULL, and use NULL for self-reg, but then we will loose the PK (PK cannot be NULL). As we cannot keep the correct constraints at DB level anyway, we will need to handle consistency at code-level. Test plan: Create a new patron Do some modification at the OPAC Delete the patron Confirm that the modifications as been removed (directly in DB) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> |
||
---|---|---|
.. | ||
Account | ||
Acquisition | ||
ArticleRequest | ||
Authority | ||
Biblio | ||
BiblioUtils | ||
Cache | ||
Cash | ||
Charges | ||
Checkouts | ||
Club | ||
Config | ||
Course | ||
Edifact | ||
Exceptions | ||
Exporter | ||
ExternalContent | ||
Filter/MARC | ||
Illrequest | ||
Indexer | ||
Item | ||
Library | ||
List | ||
MetadataRecord | ||
Middleware | ||
Misc | ||
Notice | ||
Number | ||
OAI/Server | ||
Object | ||
Objects | ||
Old | ||
Patron | ||
Patrons | ||
pdfformat | ||
Plugins | ||
RecordProcessor | ||
REST | ||
Schema | ||
SearchEngine | ||
Serial | ||
Sitemapper | ||
SMS | ||
Subscription | ||
SuggestionEngine | ||
Tags | ||
Template/Plugin | ||
Util | ||
XSLT | ||
Z3950Responder | ||
Account.pm | ||
ActionLog.pm | ||
ActionLogs.pm | ||
AdditionalField.pm | ||
AdditionalFields.pm | ||
AdditionalFieldValue.pm | ||
AdditionalFieldValues.pm | ||
ApiKey.pm | ||
ApiKeys.pm | ||
ArticleRequest.pm | ||
ArticleRequests.pm | ||
AudioAlert.pm | ||
AudioAlerts.pm | ||
AuthorisedValue.pm | ||
AuthorisedValueCategories.pm | ||
AuthorisedValueCategory.pm | ||
AuthorisedValues.pm | ||
Authorities.pm | ||
Authority.pm | ||
AuthUtils.pm | ||
Biblio.pm | ||
BiblioFramework.pm | ||
BiblioFrameworks.pm | ||
Biblioitem.pm | ||
Biblioitems.pm | ||
Biblios.pm | ||
BiblioUtils.pm | ||
Cache.pm | ||
Caches.pm | ||
Calendar.pm | ||
Checkout.pm | ||
Checkouts.pm | ||
CirculationRule.pm | ||
CirculationRules.pm | ||
Cities.pm | ||
City.pm | ||
ClassSortRule.pm | ||
ClassSortRules.pm | ||
ClassSource.pm | ||
ClassSources.pm | ||
ClassSplitRule.pm | ||
ClassSplitRules.pm | ||
Club.pm | ||
Clubs.pm | ||
Config.pm | ||
Course.pm | ||
Courses.pm | ||
CsvProfile.pm | ||
CsvProfiles.pm | ||
Database.pm | ||
DateUtils.pm | ||
Desk.pm | ||
Desks.pm | ||
EDI.pm | ||
Edifact.pm | ||
Email.pm | ||
Exceptions.pm | ||
ExternalContent.pm | ||
FrameworkPlugin.pm | ||
Hold.pm | ||
Holds.pm | ||
I18N.pm | ||
Illcomment.pm | ||
Illcomments.pm | ||
Illrequest.pm | ||
Illrequestattribute.pm | ||
Illrequestattributes.pm | ||
Illrequests.pm | ||
Item.pm | ||
Items.pm | ||
ItemType.pm | ||
ItemTypes.pm | ||
KeyboardShortcut.pm | ||
KeyboardShortcuts.pm | ||
Libraries.pm | ||
Library.pm | ||
Linktracker.pm | ||
Localization.pm | ||
Localizations.pm | ||
Logger.pm | ||
Manual.pm | ||
MarcSubfieldStructure.pm | ||
MarcSubfieldStructures.pm | ||
MetadataIterator.pm | ||
MetadataRecord.pm | ||
MetaSearcher.pm | ||
MoreUtils.pm | ||
News.pm | ||
NewsItem.pm | ||
OAuth.pm | ||
OAuthAccessToken.pm | ||
OAuthAccessTokens.pm | ||
Object.pm | ||
Objects.pm | ||
Patron.pm | ||
Patrons.pm | ||
Plugins.pm | ||
ProblemReport.pm | ||
ProblemReports.pm | ||
Rating.pm | ||
Ratings.pm | ||
RDF.pm | ||
RecordProcessor.pm | ||
RefundLostItemFeeRules.pm | ||
Report.pm | ||
Reports.pm | ||
Review.pm | ||
Reviews.pm | ||
Schema.pm | ||
Script.pm | ||
SearchEngine.pm | ||
SearchField.pm | ||
SearchFields.pm | ||
SearchMarcMap.pm | ||
SearchMarcMaps.pm | ||
Serial.pm | ||
Serials.pm | ||
SharedContent.pm | ||
SimpleMARC.pm | ||
Sitemapper.pm | ||
Statistic.pm | ||
Statistics.pm | ||
StockRotationItem.pm | ||
StockRotationItems.pm | ||
StockRotationRota.pm | ||
StockRotationRotas.pm | ||
StockRotationStage.pm | ||
StockRotationStages.pm | ||
Subscription.pm | ||
Subscriptions.pm | ||
Suggestion.pm | ||
SuggestionEngine.pm | ||
Suggestions.pm | ||
Tag.pm | ||
Tags.pm | ||
Token.pm | ||
UploadedFile.pm | ||
UploadedFiles.pm | ||
Uploader.pm | ||
Virtualshelf.pm | ||
Virtualshelfcontent.pm | ||
Virtualshelfcontents.pm | ||
Virtualshelfshare.pm | ||
Virtualshelfshares.pm | ||
Virtualshelves.pm | ||
Z3950Responder.pm | ||
Z3950Server.pm | ||
Z3950Servers.pm |