1. Jun Omae
  2. trac.advanced_notification

Commits

Jun Omae  committed ff62b5e

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

  • Participants
  • Parent commits fc272ad
  • Branches trunk

Comments (0)

Files changed (2)

File trac/db_default.py

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

File trac/upgrades/db30.py

View file
                 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):