Update DB.
This commit is contained in:
parent
7faba478b9
commit
c86a40e49d
1 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
||||||
|
"""Add quote index to optimize chat item deletion
|
||||||
|
|
||||||
|
Revision ID: a2fce4808e1d
|
||||||
|
Revises: 850c47d647ba
|
||||||
|
Create Date: 2023-08-27 16:47:31.490361+00:00
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = 'a2fce4808e1d'
|
||||||
|
down_revision = '850c47d647ba'
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.create_index('quote_index', 'chat_message', ['quote_id'], unique=False)
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.drop_index('quote_index', table_name='chat_message')
|
||||||
|
# ### end Alembic commands ###
|
Loading…
Add table
Add a link
Reference in a new issue