Skip to content

Commit 8f02bdd

Browse files
committed
migration
1 parent d45b9b1 commit 8f02bdd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"""new tags priority column
2+
3+
Revision ID: 8a742f3efdd9
4+
Revises: 10729e07000d
5+
Create Date: 2024-10-02 15:23:27.446241+00:00
6+
7+
"""
8+
import sqlalchemy as sa
9+
from alembic import op
10+
11+
# revision identifiers, used by Alembic.
12+
revision = "8a742f3efdd9"
13+
down_revision = "10729e07000d"
14+
branch_labels = None
15+
depends_on = None
16+
17+
18+
def upgrade():
19+
# ### commands auto generated by Alembic - please adjust! ###
20+
op.add_column("tags", sa.Column("priority", sa.Integer(), nullable=True))
21+
# ### end Alembic commands ###
22+
23+
24+
def downgrade():
25+
# ### commands auto generated by Alembic - please adjust! ###
26+
op.drop_column("tags", "priority")
27+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)