-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from KozielGPC/144-adicionar-team-id-para-tab…
…ela-de-notificacoes #144 - Adicionar team id para tabela de notificacoes
- Loading branch information
Showing
6 changed files
with
69 additions
and
27 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
backend/migrations/versions/a4ec6fd4cb0b_update_notifications_table.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,32 @@ | ||
"""update notifications table | ||
Revision ID: a4ec6fd4cb0b | ||
Revises: 41197dc92dd1 | ||
Create Date: 2023-06-18 19:10:33.836857 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "a4ec6fd4cb0b" | ||
down_revision = "41197dc92dd1" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column("notifications", sa.Column("team_id", sa.Integer)) | ||
op.add_column("notifications", sa.Column("team_name", sa.String)) | ||
op.add_column("notifications", sa.Column("sender_name", sa.String)) | ||
op.drop_column("notifications", "name") | ||
op.drop_column("notifications", "text") | ||
|
||
|
||
def downgrade(): | ||
op.add_column("notifications", sa.Column("name", sa.String)) | ||
op.add_column("notifications", sa.Column("text", sa.String)) | ||
op.drop_column("notifications", "team_id") | ||
op.drop_column("notifications", "team_name") | ||
op.drop_column("notifications", "sender_name") |