Commits

Jun Omae committed ff62b5e

added `subscription (class)` index for `Subscription.find_by_class`

Comments (0)

Files changed (2)

trac/db_default.py

         Column('format'),
         Column('priority', type='int'),
         Column('adverb'),
-        Index(['sid', 'authenticated'])],
+        Index(['sid', 'authenticated']),
+        Index(['class'])],
 ]
 
 

trac/upgrades/db30.py

                 Column('format'),
                 Column('priority', type='int'),
                 Column('adverb'),
-                Index(['sid', 'authenticated'])]
+                Index(['sid', 'authenticated']),
+                Index(['class'])]
 
     db_connector, _ = DatabaseManager(env).get_connector()
     for stmt in db_connector.to_sql(table):