-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump sqlmodel, sqlalchemy, pydantic, fastapi
We no longer depend on sqlalchemy v1.4 this was. These all need to be updated together because of cross dependencies.
- Loading branch information
Showing
32 changed files
with
641 additions
and
419 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...nscribee_backend/db/migrations/versions/c88376bf4844_fix_accidentially_nullable_fields.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"""fix accidentially nullable fields | ||
Revision ID: c88376bf4844 | ||
Revises: 417eece003cb | ||
Create Date: 2025-01-14 16:23:54.386629 | ||
""" | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "c88376bf4844" | ||
down_revision = "417eece003cb" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("task", schema=None) as batch_op: | ||
batch_op.alter_column("document_id", existing_type=sa.UUID(), nullable=False) | ||
|
||
with op.batch_alter_table("taskdependency", schema=None) as batch_op: | ||
batch_op.alter_column( | ||
"dependent_task_id", existing_type=sa.UUID(), nullable=False | ||
) | ||
batch_op.alter_column( | ||
"dependant_on_id", existing_type=sa.UUID(), nullable=False | ||
) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("taskdependency", schema=None) as batch_op: | ||
batch_op.alter_column("dependant_on_id", existing_type=sa.UUID(), nullable=True) | ||
batch_op.alter_column( | ||
"dependent_task_id", existing_type=sa.UUID(), nullable=True | ||
) | ||
|
||
with op.batch_alter_table("task", schema=None) as batch_op: | ||
batch_op.alter_column("document_id", existing_type=sa.UUID(), nullable=True) | ||
|
||
# ### end Alembic commands ### |
Oops, something went wrong.