eikoyoneki / haggle

Automatically exported from code.google.com/p/haggle
Apache License 2.0
0 stars 0 forks source link

Database self-check on startup #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if the SQLDataStore checked the database to make sure that all 
the tables, views 
etc. are as it expects. This would help prevent bugs and problems being 
perceived due to an 
incorrectly formatted database.

If they are ok, it should accept the data base, if not, then it could either 
give a debug message and 
fail to initialize, or it could delete the database.

Original issue reported on code.google.com by daniel.a...@it.uu.se on 31 Aug 2009 at 7:08