Commit 09ec8739 authored by Vojtech Sodoma's avatar Vojtech Sodoma

Merge branch 'master' into 2428-Migrate-Outcalls-to-Routes

parents 0866e159 74465f74
xivo-dao (2019.05.00) xivo-callisto; urgency=medium
* 2443 Route tables missing in dao init
-- Tomas Taraba <ttaraba@avencall.com> Mon, 15 Apr 2019 17:26:00 +0000
xivo-dao (2019.04.00) xivo-callisto; urgency=medium
* 2352 Add api to create func key destination for agent
......
......@@ -141,4 +141,8 @@ from xivo_dao.alchemy.voicemail import Voicemail
from xivo_dao.alchemy.xc_queue_members_default import XCQueueMembersDefault
from xivo_dao.alchemy.xc_queues import XCQueues
from xivo_dao.alchemy.xc_users import XCUsers
from xivo_dao.alchemy.mediaserver import MediaServer
\ No newline at end of file
from xivo_dao.alchemy.mediaserver import MediaServer
from xivo_dao.alchemy.route import Route
from xivo_dao.alchemy.routecontext import RouteContext
from xivo_dao.alchemy.routemediaserver import RouteMediaServer
from xivo_dao.alchemy.routetrunk import RouteTrunk
......@@ -24,7 +24,7 @@ from xivo_dao.helpers.db_manager import Base
class RouteContext(Base):
__tablename__ = 'routecontext'
__table_args__ = (
PrimaryKeyConstraint('id'),
PrimaryKeyConstraint('routeid', 'contextname'),
ForeignKeyConstraint(('routeid',),
('route.id',),
ondelete='RESTRICT'),
......
......@@ -24,7 +24,7 @@ from xivo_dao.helpers.db_manager import Base
class RouteMediaServer(Base):
__tablename__ = 'routemediaserver'
__table_args__ = (
PrimaryKeyConstraint('id'),
PrimaryKeyConstraint('routeid', 'mdsid'),
ForeignKeyConstraint(('routeid',),
('route.id',),
ondelete='RESTRICT'),
......
......@@ -24,7 +24,7 @@ from xivo_dao.helpers.db_manager import Base
class RouteTrunk(Base):
__tablename__ = 'routetrunk'
__table_args__ = (
PrimaryKeyConstraint('id'),
PrimaryKeyConstraint('routeid', 'trunkid'),
ForeignKeyConstraint(('routeid',),
('route.id',),
ondelete='RESTRICT'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment