feat: add scripts field to Organization table

This commit is contained in:
swve 2025-06-08 18:14:14 +02:00
parent 0d789f85cb
commit 1b35e1cbb3
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
"""Org Scripts
Revision ID: eb10d15465b3
Revises: a5afa69dd917
Create Date: 2025-06-08 18:12:18.853988
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa # noqa: F401
import sqlmodel # noqa: F401
# revision identifiers, used by Alembic.
revision: str = 'eb10d15465b3'
down_revision: Union[str, None] = 'a5afa69dd917'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('organization', sa.Column('scripts', sa.JSON(), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('organization', 'scripts')
# ### end Alembic commands ###