Skip to content

Commit bc876f5

Browse files
committed
Revert "Migration custom fix"
This reverts commit a5abda4.
1 parent a5abda4 commit bc876f5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"""
2+
Add category to ticket table
3+
"""
4+
from alembic import op
5+
import sqlalchemy as sa
6+
import sqlmodel.sql.sqltypes
7+
8+
9+
# revision identifiers, used by Alembic.
10+
revision = 'b54d6e812a9c'
11+
down_revision = 'f23a9c45d178'
12+
branch_labels = None
13+
depends_on = None
14+
15+
16+
def upgrade():
17+
# Add category column to ticket table
18+
op.add_column('ticket', sa.Column('category', sqlmodel.sql.sqltypes.AutoString(), nullable=False,
19+
server_default="Suporte")) # Default to "Suporte" for existing tickets
20+
21+
22+
def downgrade():
23+
# Remove category column from ticket table
24+
op.drop_column('ticket', 'category')

0 commit comments

Comments
 (0)