mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Because SQLite doesn't support full ALTER capabilities, alembic scripts
require batch operations. However, that capability wasn't available until
0.7.0 which some distributions haven't reached yet. Therefore, the batch
operations introduced in commit 86d6e44cc
(review 2319) have been reverted
and SQLite is unsupported again, for now anyway.
Tested the full upgrade and downgrade on MySQL/Mariadb and Postgresql.
ASTERISK-25890 #close
Reported-by: Harley Peters
Change-Id: I82eba5456736320256f6775f5b0b40133f4d1c80
23 lines
424 B
Python
23 lines
424 B
Python
"""Add RTP keepalive
|
|
|
|
Revision ID: 498357a710ae
|
|
Revises: 28b8e71e541f
|
|
Create Date: 2015-07-10 16:42:12.244421
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '498357a710ae'
|
|
down_revision = '28b8e71e541f'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.add_column('ps_endpoints', sa.Column('rtp_keepalive', sa.Integer))
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column('ps_endpoints', 'rtp_keepalive')
|