- # The Roundcube developers were nice enough to include
- # DBMS-specific install and upgrade scripts, so Postgres can take
- # advantage of ON DELETE triggers. Here's an example:
- #
- # ...
- # user_id integer NOT NULL
- # REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE
- #
- # This query is of course necessary with any DBMS:
- sql_queries = ['DELETE FROM users WHERE user_id = $1::int;']
+ # Thanks to the ON DELETE triggers, this will remove all child
+ # records associated with user_id too.
+ sql_query = 'DELETE FROM users WHERE user_id = $1::int;'