mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
b68f074783
* Add index on message_id for foreign key * Revert cron changes
39 lines
970 B
Python
39 lines
970 B
Python
"""empty message
|
|
|
|
Revision ID: 46ecb648a47e
|
|
Revises: ec7fdde8da9f
|
|
Create Date: 2023-10-05 10:43:35.668902
|
|
|
|
"""
|
|
import sqlalchemy_utils
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "46ecb648a47e"
|
|
down_revision = "ec7fdde8da9f"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.get_context().autocommit_block():
|
|
op.create_index(
|
|
op.f("ix_message_id_matching_email_log_id"),
|
|
"message_id_matching",
|
|
["email_log_id"],
|
|
unique=False,
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.get_context().autocommit_block():
|
|
op.drop_index(
|
|
op.f("ix_message_id_matching_email_log_id"),
|
|
table_name="message_id_matching",
|
|
)
|
|
# ### end Alembic commands ###
|