mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-27 06:31:54 +00:00
alembic: script modifications due to errors
A couple of the scripts had errors that would not allow a full migration to take place. The extensions table needed to make its 'id' column a primary key in order to work with mysql. The other script ...add_endpoints... was missing tables that it was trying to add columns to. Added the primary key on id for extensions and added the tables in for the missing pjsip configuration options. While it is not ideal to modify already released scripts this was a case where it had to be done due to errors in the script and lacking a better alternative. Review: https://reviewboard.asterisk.org/r/3167/ ........ Merged revisions 407019 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -35,8 +35,8 @@ import sqlalchemy as sa
|
||||
def upgrade():
|
||||
op.create_table(
|
||||
'extensions',
|
||||
sa.Column('id', sa.BigInteger, nullable=False, unique=True,
|
||||
autoincrement=True),
|
||||
sa.Column('id', sa.BigInteger, primary_key=True, nullable=False,
|
||||
unique=True, autoincrement=True),
|
||||
sa.Column('context', sa.String(40), primary_key=True, nullable=False),
|
||||
sa.Column('exten', sa.String(40), primary_key=True, nullable=False),
|
||||
sa.Column('priority', sa.Integer, primary_key=True, nullable=False,
|
||||
|
||||
Reference in New Issue
Block a user