New script: dbcheck . Beginngs of a database consistency checker.
Right now, it loads foreign key information from the foreign_keys table of the database, and prints out information on rows that fail the consistency checks. The plan is that it will eventually check more things, such as the existence of files references in the database.
Showing with 132 additions and 1 deletion