Skip to content

Commit 323608a

Browse files
committed
feat: modify permission
1 parent 59edf69 commit 323608a

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""027_modify_permission
2+
3+
Revision ID: b049c9f8ca5b
4+
Revises: 4c6d18a18bd4
5+
Create Date: 2025-07-16 09:59:23.345135
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
import sqlmodel.sql.sqltypes
11+
from sqlalchemy.dialects import postgresql
12+
13+
# revision identifiers, used by Alembic.
14+
revision = 'b049c9f8ca5b'
15+
down_revision = '4c6d18a18bd4'
16+
branch_labels = None
17+
depends_on = None
18+
19+
20+
def upgrade():
21+
# ### commands auto generated by Alembic - please adjust! ###
22+
op.add_column('ds_permission', sa.Column('name', sqlmodel.sql.sqltypes.AutoString(length=128), nullable=True))
23+
op.alter_column('ds_permission', 'auth_target_type',
24+
existing_type=sa.VARCHAR(length=128),
25+
nullable=True)
26+
# ### end Alembic commands ###
27+
28+
29+
def downgrade():
30+
# ### commands auto generated by Alembic - please adjust! ###
31+
op.alter_column('ds_permission', 'auth_target_type',
32+
existing_type=sa.VARCHAR(length=128),
33+
nullable=False)
34+
op.drop_column('ds_permission', 'name')
35+
# ### end Alembic commands ###

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
"pyyaml (>=6.0.2,<7.0.0)",
3737
"fastapi-mcp (>=0.3.4,<0.4.0)",
3838
"tabulate>=0.9.0",
39-
"sqlbot-xpack==0.0.3.3",
39+
"sqlbot-xpack==0.0.3.4",
4040
"fastapi-cache2>=0.2.2",
4141
]
4242
[[tool.uv.index]]

0 commit comments

Comments
 (0)