mirror of
https://github.com/omnara-ai/omnara.git
synced 2025-08-12 20:39:09 +03:00
delete only messages (#63)
Co-authored-by: Kartik Sarangmath <kartiksarangmath@Kartiks-MacBook-Air.local>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
"""Add DELETED status to AgentStatus enum
|
||||
|
||||
Revision ID: 2e2f1b18e835
|
||||
Revises: f903f2e200c9
|
||||
Create Date: 2025-08-10 16:31:11.910336
|
||||
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = "2e2f1b18e835"
|
||||
down_revision: Union[str, None] = "f903f2e200c9"
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
# Add DELETED to the AgentStatus enum type
|
||||
op.execute("ALTER TYPE agentstatus ADD VALUE IF NOT EXISTS 'DELETED'")
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
# Note: PostgreSQL doesn't support removing enum values easily
|
||||
# This would require recreating the entire enum type and all dependent columns
|
||||
# For safety, we'll just pass and handle this manually if needed
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
@@ -10,6 +10,7 @@ class AgentStatus(str, Enum):
|
||||
FAILED = "FAILED"
|
||||
KILLED = "KILLED"
|
||||
DISCONNECTED = "DISCONNECTED"
|
||||
DELETED = "DELETED"
|
||||
|
||||
|
||||
class SenderType(str, Enum):
|
||||
|
||||
Reference in New Issue
Block a user