839df17de3
Added support for foreign keys to the MySQL adapter. activity_stream_matches now has a foreign key to help enforce referential integrity. Added the AddForeignKey method to the database adapters. Shortened a couple of API bits to ever slow slightly reduce the lengths of the strings. Fixed a phrase group I missed for logged out users in init.js Fixed a bug where deleting a topic would break the alert list when there is an alert event relating to it. You will need to run the updater / patcher for this commit.
5 lines
166 B
SQL
5 lines
166 B
SQL
CREATE TABLE `activity_stream_matches` (
|
|
`watcher` int not null,
|
|
`asid` int not null,
|
|
foreign key(`asid`) REFERENCES `activity_stream`(`asid`) ON DELETE CASCADE
|
|
); |