]> git.ipfire.org Git - thirdparty/asterisk.git/commit
alembic/sqlalchemy: auto increment only allowed on a single column 37/3437/3
authorKevin Harwell <kharwell@digium.com>
Tue, 9 Aug 2016 17:07:20 +0000 (12:07 -0500)
committerKevin Harwell <kharwell@digium.com>
Wed, 10 Aug 2016 18:50:13 +0000 (13:50 -0500)
commitf6ec94cca66addac71d566d6fa48188b407f26ba
treecc4fb0b6923fd9f45446190d6527dfde8360222d
parent5a5b949333ca9d5f2befc2c07fb5f376dbd05ec0
alembic/sqlalchemy: auto increment only allowed on a single column

The extensions table defined two columns (id and priority) as primary key
autoincrement columns. However only one is allowed when defining the primary
key.

This patch removes the autoincrement attribute from the priority column since
it does not need to be as such and really should not have been on there in the
first place.

This patch also removes 'context', 'exten', and 'priority' from the primary key
index and creates a new combined unique contraint index on them.

ASTERISK-26183 #close

Change-Id: Ib9c712c612a4d7ec1edb0dcb77f1bae0905a470b
contrib/ast-db-manage/config/versions/581a4264e537_adding_extensions.py