mirror of
https://github.com/open-webui/computer.git
synced 2026-12-01 01:12:44 -05:00
25 lines
459 B
Python
25 lines
459 B
Python
"""add chat last read at
|
|
|
|
Revision ID: 0004
|
|
Revises: 0003
|
|
Create Date: 2026-07-11
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
revision = "0004"
|
|
down_revision = "0003"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column("chats", sa.Column("last_read_at", sa.BigInteger(), nullable=True))
|
|
op.execute("UPDATE chats SET last_read_at = updated_at")
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("chats", "last_read_at")
|