Ticket #7 (closed enhancement: invalid)
MySQL - Only report missing node for metadata/content once per node - or go ahead and create it
| Reported by: | dom | Owned by: | dom |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki-toolkit | Version: | svn |
| Keywords: | Cc: |
Description
The upgrade procedure to the new db schema currently prints lots of identical lines eg:
There was no node entry for metadata with name (node) 'Jericho Cafe', unable to migrate it! at /usr/share/perl5/Wiki/Toolkit/Setup/Database.pm line 83. There was no node entry for metadata with name (node) 'Jericho Cafe', unable to migrate it! at /usr/share/perl5/Wiki/Toolkit/Setup/Database.pm line 83. There was no node entry for metadata with name (node) 'Jericho Cafe', unable to migrate it! at /usr/share/perl5/Wiki/Toolkit/Setup/Database.pm line 83. There was no node entry for metadata with name (node) 'Jericho Cafe', unable to migrate it! at /usr/share/perl5/Wiki/Toolkit/Setup/Database.pm line 83.
We should ideally create the node anyway and do the best we can. We should then just print one warning per node (saying that we've created the node) and the further insertions should work.
Also, we should do this using print STDERR, not warn, as warn makes things difficult to read and is not really appropriate for this use.
Change History
Note: See
TracTickets for help on using
tickets.
