Introduce constraints and name mapping to source plugin database.

- Using default values now instead of NULL to signal empty field
  because NULL values are considered distinct in the context of
  UNIQUE table constraints in sqlite
- Introduced new table for mappings from sid, game, server and team
  to channel name i preparation for new functionality
- Updated and expanded unit test
This commit is contained in:
Stefan Hacker
2013-03-23 15:16:23 +01:00
parent 28195110c0
commit 0782eace33
5 changed files with 130 additions and 35 deletions

View File

@@ -202,7 +202,7 @@ class Test(unittest.TestCase):
self.assertEqual(self.mm.serverCB['callback'], self.s)
def resetDB(self):
self.s.db.db.execute("DELETE FROM source");
self.s.db.db.reset()
def resetState(self):
self.resetDB()