@@ -0,0 +1,601 @@
+%22%22%22adds index to message.reply_to_message_id%0A%0ARevision ID: 38a96fe9323e%0ARevises: 531779ade3d2%0ACreate Date: 2018-02-06 15:52:34.142593%0A%0A%22%22%22%0A%0A# revision identifiers, used by Alembic.%0Arevision = '38a96fe9323e'%0Adown_revision = '531779ade3d2'%0A%0Afrom alembic import op%0Aimport sqlalchemy as sa%0Afrom sqlalchemy.sql import text%0A%0Adef upgrade():%0A    conn = op.get_bind()%0A    conn.execute(text(%22CREATE INDEX %60ix_message_reply_to_message_id%60 ON %60message%60 (%60reply_to_message_id%60)%22))%0A%0Adef downgrade():%0A    conn = op.get_bind()%0A    conn.execute(text(%22ALTER TABLE message DROP INDEX %60ix_message_reply_to_message_id%60%22))%0A

Add index to message.reply_to_message_id