mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
* chore: remove old files * feat: ari outbound dialing * feat: add websocket configuration for ARI * feat: handling inbound calls * delete ext channel from redis on stasis end * fix: add lock in workflow run update, refactor _handle_stasis_start * chore: update submodule --------- Co-authored-by: Sabiha Khan <sabihak89@gmail.com>
71 lines
1.7 KiB
Python
71 lines
1.7 KiB
Python
"""add ari mode
|
|
|
|
Revision ID: 6d2f94baf4b7
|
|
Revises: 1a7d74d54e8f
|
|
Create Date: 2026-02-15 13:52:29.285583
|
|
|
|
"""
|
|
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
from alembic_postgresql_enum import TableReference
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = "6d2f94baf4b7"
|
|
down_revision: Union[str, None] = "1a7d74d54e8f"
|
|
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! ###
|
|
op.sync_enum_values(
|
|
enum_schema="public",
|
|
enum_name="workflow_run_mode",
|
|
new_values=[
|
|
"ari",
|
|
"twilio",
|
|
"vonage",
|
|
"vobiz",
|
|
"cloudonix",
|
|
"webrtc",
|
|
"smallwebrtc",
|
|
"stasis",
|
|
"VOICE",
|
|
"CHAT",
|
|
],
|
|
affected_columns=[
|
|
TableReference(
|
|
table_schema="public", table_name="workflow_runs", column_name="mode"
|
|
)
|
|
],
|
|
enum_values_to_rename=[],
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.sync_enum_values(
|
|
enum_schema="public",
|
|
enum_name="workflow_run_mode",
|
|
new_values=[
|
|
"twilio",
|
|
"vonage",
|
|
"vobiz",
|
|
"cloudonix",
|
|
"stasis",
|
|
"webrtc",
|
|
"smallwebrtc",
|
|
"VOICE",
|
|
"CHAT",
|
|
],
|
|
affected_columns=[
|
|
TableReference(
|
|
table_schema="public", table_name="workflow_runs", column_name="mode"
|
|
)
|
|
],
|
|
enum_values_to_rename=[],
|
|
)
|
|
# ### end Alembic commands ###
|