Skip to content

Commit

Permalink
Add missing migration file and downgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mtruj013 committed Jun 25, 2024
1 parent d99c1ae commit e345485
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions migrations/versions/c27fec1bfee2_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"""empty message
Revision ID: c27fec1bfee2
Revises: f18a0bd8a809
Create Date: 2024-06-14 18:33:53.519236
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "c27fec1bfee2"
down_revision = "f18a0bd8a809"
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_index(
"notices_published_desc_idx",
"notice",
[sa.text("published DESC")],
unique=False,
)
op.create_index(
"notices_published_idx", "notice", ["published"], unique=False
)
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_index("notices_published_idx", table_name="notice")
op.drop_index("notices_published_desc_idx", table_name="notice")
# ### end Alembic commands ###

0 comments on commit e345485

Please sign in to comment.