Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add message_id column to notifications
  • Loading branch information
Kenneth Kehl committed Dec 11, 2024
commit 69ecb2f096ee0fbca35fa593c6cdd50f953c3e56
7 changes: 7 additions & 0 deletions migrations/versions/0413_add_message_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@

def upgrade():
op.add_column("notifications", sa.Column("message_id", sa.Text))
op.create_index(
"ix_notifications_message_id",
"notifications",
["message_id"],
unique=False,
)


def downgrade():
op.drop_index("ix_notifications_message_id", table_name="notifications")
op.drop_column("notifications", "message_id")