Index: /trunk/src/VBox/ValidationKit/testmanager/db/TestManagerDatabaseComments.pgsql
===================================================================
--- /trunk/src/VBox/ValidationKit/testmanager/db/TestManagerDatabaseComments.pgsql	(revision 64947)
+++ /trunk/src/VBox/ValidationKit/testmanager/db/TestManagerDatabaseComments.pgsql	(revision 64948)
@@ -447,5 +447,5 @@
   'Test case scheduling priority.
 Higher number causes the test case to be run more frequently.
-@sa SchedGroupMembers.iSchedPriority
+@sa SchedGroupMembers.iSchedPriority, TestBoxesInSchedGroups.iSchedPriority
 @todo Not sure we want to keep this...';
 
@@ -543,7 +543,7 @@
 
 COMMENT ON COLUMN SchedGroupMembers.iSchedPriority IS
-  'The scheduling priority if the test group.
+  'The scheduling priority of the test group.
 Higher number causes the test case to be run more frequently.
-@sa TestGroupMembers.iSchedPriority';
+@sa TestGroupMembers.iSchedPriority, TestBoxesInSchedGroups.iSchedPriority';
 
 
@@ -716,4 +716,34 @@
 
 
+COMMENT ON TABLE TestBoxesInSchedGroups IS
+  'N:M relationship between test boxes and scheduling groups.
+
+We associate a priority with this relationship.
+
+@remarks This table stores history.  Never update or delete anything.  The
+         equivalent of deleting is done by setting the ''tsExpire'' field to
+         current_timestamp.  To select the currently valid entries use
+         tsExpire = TIMESTAMP WITH TIME ZONE ''infinity''.';
+
+
+COMMENT ON COLUMN TestBoxesInSchedGroups.tsEffective IS
+  'When this row starts taking effect (inclusive).';
+
+
+COMMENT ON COLUMN TestBoxesInSchedGroups.tsExpire IS
+  'When this row stops being tsEffective (exclusive).';
+
+
+COMMENT ON COLUMN TestBoxesInSchedGroups.uidAuthor IS
+  'The user id of the one who created/modified this entry.
+Non-unique foreign key: Users(uid)';
+
+
+COMMENT ON COLUMN TestBoxesInSchedGroups.iSchedPriority IS
+  'The scheduling priority of the scheduling group for the test box.
+Higher number causes the scheduling group to be serviced more frequently.
+@sa TestGroupMembers.iSchedPriority, SchedGroups.iSchedPriority';
+
+
 COMMENT ON TABLE FailureCategories IS
   'Failure categories.
@@ -1259,4 +1289,9 @@
 
 
+COMMENT ON COLUMN TestBoxStatuses.iWorkItem IS
+  'Interal work item number.
+This is used to pick and prioritize between multiple scheduling groups.';
+
+
 COMMENT ON TABLE GlobalResourceStatuses IS
   'Global resource status, tracks which test set resources are allocated by.
Index: /trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py
===================================================================
--- /trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py	(revision 64947)
+++ /trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py	(revision 64948)
@@ -91,4 +91,5 @@
         'FailureReasons',
         'GlobalResources',
+        'TestBoxStrTab',
         'Testcases',
         'TestcaseArgs',
