-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
migrations/versions/7388a2c219d2_add_user_id_to_lecturer_user.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,24 @@ | ||
"""add-user-id-to-lecturer-user | ||
Revision ID: 7388a2c219d2 | ||
Revises: fee34ac4fcab | ||
Create Date: 2024-11-10 04:07:42.997861 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
|
||
revision = '7388a2c219d2' | ||
down_revision = 'fee34ac4fcab' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column('lecturer_user_comment', sa.Column('user_id', sa.Integer(), nullable=False)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('lecturer_user_comment', 'user_id') |
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 |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
|
||
revision = 'fee34ac4fcab' | ||
|
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ class CommentGet(Base): | |
lecturer_id: int | ||
|
||
|
||
|
||
class CommentPost(Base): | ||
subject: str | ||
text: str | ||
|