-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Изменения пофиксил миграции + добавил тест на ступенчатую миграцию
- Loading branch information
Showing
11 changed files
with
127 additions
and
170 deletions.
There are no files selected for viewing
89 changes: 0 additions & 89 deletions
89
migrations/versions/20240422_1624_4892e78eb989_add_raw_html.py
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from sqlalchemy import String | ||
from sqlalchemy.orm import Mapped, mapped_column | ||
|
||
from profcomff_definitions.base import Base | ||
|
||
|
||
class OdsTimetableAct(Base): | ||
event_text: Mapped[str | None] = mapped_column(String, nullable=True, index=True) | ||
time_interval_text: Mapped[str | None] = mapped_column(String, nullable=True) | ||
group_text: Mapped[str | None] = mapped_column(String, nullable=True) | ||
__mapper_args__ = { | ||
"primary_key": [event_text, time_interval_text, group_text] | ||
} # Used only to correctly map ORM object to sql table |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.