Changes between Version 3 and Version 4 of TracDev/Proposals/AdvancedNotification/DatabaseSchema
- Timestamp:
- Nov 29, 2014, 6:29:12 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/Proposals/AdvancedNotification/DatabaseSchema
v3 v4 5 5 The TracNotification module stores notification event subscriptions in the database. 6 6 7 == Table ` subscription`7 == Table `notify_subscription` 8 8 ||'''Table'''||'''Key'''|| 9 ||'' subscription''||''id''||9 ||''notify_subscription''||''id''|| 10 10 11 11 ||'''Columns'''||'''Type'''||'''Notes'''|| … … 21 21 ||''adverb''|| ||`always` or `never`|| 22 22 23 ||'''Indices'''|| 24 ||''sid'', ''authenticated''|| 25 ||''class''|| 26 23 27 Stores if a subscription rule always/never applies for a certain user, at what priority and using what distribution method/format. 24 28 … … 27 31 Note 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. 28 32 29 See [browser:psuter/trac/notification/model.py@advanced-notification-subscriptions #/ trac.notification.model.Subscription]33 See [browser:psuter/trac/notification/model.py@advanced-notification-subscriptions.2#/ trac.notification.model.Subscription] 30 34 31 35 == Table `subscription_attribute` … … 64 68 Would this cause problems for users that already used that plugin? 65 69 70 DONE Renamed `subscription` to `notify_subscription`. 71 72 TODO Rename `subscription_attribute` when it is implemented. 73 66 74 === Remove `time` and `changetime` columns? 67 75 These are not really needed.