housekeep: reformat files with pre-hooks

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2024-08-03 08:15:56 +01:00
parent 4d5909256f
commit a54b6935a1
No known key found for this signature in database
GPG key ID: 244740D17C7FD0EC
4 changed files with 55 additions and 54 deletions

View file

@ -1,30 +1,29 @@
"""add indicies on PackageBases for RSS order by
"""add indices on PackageBases for RSS order by
Revision ID: 38e5b9982eea
Revises: 7d65d35fae45
Create Date: 2024-08-03 01:35:39.104283
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '38e5b9982eea'
down_revision = '7d65d35fae45'
revision = "38e5b9982eea"
down_revision = "7d65d35fae45"
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_index('BasesModifiedTS', 'PackageBases', ['ModifiedTS'], unique=False)
op.create_index('BasesSubmittedTS', 'PackageBases', ['SubmittedTS'], unique=False)
op.create_index("BasesModifiedTS", "PackageBases", ["ModifiedTS"], unique=False)
op.create_index("BasesSubmittedTS", "PackageBases", ["SubmittedTS"], unique=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index('BasesSubmittedTS', table_name='PackageBases')
op.drop_index('BasesModifiedTS', table_name='PackageBases')
op.drop_index("BasesSubmittedTS", table_name="PackageBases")
op.drop_index("BasesModifiedTS", table_name="PackageBases")
# ### end Alembic commands ###