Add comments to existing schema deltas that used "CREATE INDEX" directly

This commit is contained in:
Mark Haines 2016-09-12 11:00:26 +01:00
parent caef86f428
commit 31f85f9db9
6 changed files with 24 additions and 0 deletions

View file

@ -13,6 +13,10 @@
* limitations under the License.
*/
/** Using CREATE INDEX directly is deprecated in favour of using background
* update see synapse/storage/schema/delta/33/access_tokens_device_index.sql
* and synapse/storage/registration.py for an example using
* "access_tokens_device_index" **/
CREATE INDEX event_push_actions_stream_ordering on event_push_actions(
stream_ordering, user_id
);