Talk:FillMythMetadata.pl

From MythTV Official Wiki
Jump to: navigation, search

Also, when checking supported schema revisions, it is preferable to explicitly set a single value or range, rather than bounded only on one end.

Menny says: Can you elaborate on this? I don't think I understand completely.
Right now, you are checking 'DBSchemaVer' for >= 1254, meaning it will run on 0.23 or newer. You should also be checking 'mythvideo.DBSchemaVer' for 1032. You want to choose a specific revision, or range of revisions that you know your script will work against. Looking through the dozen schema revisions since the 0.23 release, I don't see anything currently that will cause problems, but the undefined hash value above is a perfect example of what could happen.