Edgewall Software

Changes between Version 3 and Version 4 of TracDev/Proposals/AdvancedNotification/DatabaseSchema


Ignore:
Timestamp:
Nov 29, 2014, 6:29:12 PM (9 years ago)
Author:
Peter Suter
Comment:

Renamed table, added indices, updated links

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/Proposals/AdvancedNotification/DatabaseSchema

    v3 v4  
    55The TracNotification module stores notification event subscriptions in the database.
    66
    7 == Table `subscription`
     7== Table `notify_subscription`
    88||'''Table'''||'''Key'''||
    9 ||''subscription''||''id''||
     9||''notify_subscription''||''id''||
    1010
    1111||'''Columns'''||'''Type'''||'''Notes'''||
     
    2121||''adverb''|| ||`always` or `never`||
    2222
     23||'''Indices'''||
     24||''sid'', ''authenticated''||
     25||''class''||
     26
    2327Stores if a subscription rule always/never applies for a certain user, at what priority and using what distribution method/format.
    2428
     
    2731Note that this table does not store an (email) address, but the commonly used subscription tuple has an additional item `addr`. Usually such tuples that correspond to entries in this DB table contain a `addr` of `None`. Other tuples may contain an (email) address (e.g. retrieved from  a ticket CC field) but are missing the `sid` item instead.
    2832
    29 See [browser:psuter/trac/notification/model.py@advanced-notification-subscriptions#/ trac.notification.model.Subscription]
     33See [browser:psuter/trac/notification/model.py@advanced-notification-subscriptions.2#/ trac.notification.model.Subscription]
    3034
    3135== Table `subscription_attribute`
     
    6468Would this cause problems for users that already used that plugin?
    6569
     70DONE Renamed `subscription` to `notify_subscription`.
     71
     72TODO Rename `subscription_attribute` when it is implemented.
     73
    6674=== Remove `time` and `changetime` columns?
    6775These are not really needed.