Commit 02ba5e47 authored by Etienne Allovon's avatar Etienne Allovon

Merge branch '3366-debian10-update-python-dependencies' into 'master'

3366 - update requirements with buster versions

See merge request !62
parents b7e40e41 4befe610
xivo-dao (2020.10.00) xivo-freya; urgency=medium
* 3366 - update python lib for Debian10
-- Etienne Allovon <[email protected]> Thu, 11 Jun 2020 15:38:45 +0000
xivo-dao (2020.07.00) xivo-electra; urgency=medium
[ Tomas Taraba ]
......
git+https://gitlab.com/xivo.solutions/xivo-lib-python.git
git+https://gitlab.com/xivo.solutions/xivo-provd-client.git
psycopg2-binary==2.7.5
pyyaml==3.12
sqlalchemy==1.0.15
psycopg2-binary==2.8.4
pyyaml==3.13
sqlalchemy==1.2.18
......@@ -29,7 +29,7 @@ class AccessFeatures(Base):
UniqueConstraint('host', 'feature'),
)
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
host = Column(String(255), nullable=False, server_default='')
commented = Column(Integer, nullable=False, server_default='0')
feature = Column(String(64), nullable=False, server_default='phonebook')
......@@ -33,7 +33,7 @@ class AccessWebService(Base):
Index('accesswebservice__idx__passwd', 'passwd')
)
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(64), nullable=False, server_default='')
login = Column(String(64))
passwd = Column(String(64))
......
......@@ -28,7 +28,7 @@ class AgentFeatures(Base):
UniqueConstraint('number'),
)
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
numgroup = Column(Integer, nullable=False)
firstname = Column(String(128), nullable=False, server_default='')
lastname = Column(String(128), nullable=False, server_default='')
......
......@@ -25,7 +25,7 @@ class AgentGlobalParams(Base):
__tablename__ = 'agentglobalparams'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
category = Column(String(128), nullable=False)
option_name = Column(String(255), nullable=False)
option_value = Column(String(255))
......@@ -25,7 +25,7 @@ class AgentGroup(Base):
__tablename__ = 'agentgroup'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
groupid = Column(Integer, nullable=False)
name = Column(String(128), nullable=False, server_default='')
groups = Column(String(255), nullable=False, server_default='')
......
......@@ -29,7 +29,7 @@ class Attachment(Base):
UniqueConstraint('object_type', 'object_id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
name = Column(String(64), nullable=False)
object_type = Column(String(16), nullable=False)
object_id = Column(Integer, nullable=False)
......
......@@ -25,7 +25,7 @@ class CallLog(Base):
__tablename__ = 'call_log'
id = Column(Integer, nullable=False, primary_key=True)
id = Column(Integer, nullable=False, primary_key=True, autoincrement=True)
date = Column(DateTime, nullable=False)
source_name = Column(String(255))
source_exten = Column(String(255))
......
......@@ -37,7 +37,7 @@ class Callfilter(Base):
UniqueConstraint('name'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
entity_id = Column(Integer, server_default=text('NULL'))
name = Column(String(128), nullable=False, server_default='')
type = Column(enum.callfilter_type, nullable=False)
......
......@@ -30,7 +30,7 @@ class Callfiltermember(Base):
CheckConstraint("bstype in ('boss', 'secretary')")
)
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
callfilterid = Column(Integer, nullable=False, server_default='0')
type = Column(Enum('user',
name='callfiltermember_type',
......
......@@ -35,7 +35,7 @@ class CEL(Base):
Index('cel__idx__linkedid', 'linkedid'),
)
id = Column(Integer, primary_key=True, nullable=False)
id = Column(Integer, primary_key=True, nullable=False, autoincrement=True)
eventtype = Column(Text, nullable=False)
eventtime = Column(DateTime, nullable=False)
userdeftype = Column(Text, nullable=False)
......
......@@ -29,7 +29,7 @@ class ContextType(Base):
UniqueConstraint('name'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
name = Column(String(40), nullable=False)
commented = Column(Integer)
deletable = Column(Integer)
......
......@@ -25,7 +25,7 @@ class CtiContexts(Base):
__tablename__ = 'cticontexts'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(50))
directories = Column(Text, nullable=False)
display = Column(Text, nullable=False)
......
......@@ -25,7 +25,7 @@ class CtiDisplays(Base):
__tablename__ = 'ctidisplays'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(50))
data = Column(Text, nullable=False)
deletable = Column(Integer)
......
......@@ -25,5 +25,5 @@ class CtiPreference(Base):
__tablename__ = 'cti_preference'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
option = Column(String(255), nullable=False)
......@@ -37,7 +37,7 @@ class CtiProfile(Base):
ondelete='RESTRICT'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
name = Column(String(255), nullable=False)
presence_id = Column(Integer)
phonehints_id = Column(Integer)
......
......@@ -25,5 +25,5 @@ class CtiService(Base):
__tablename__ = 'cti_service'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
key = Column(String(255), nullable=False)
......@@ -25,5 +25,5 @@ class CtiXlet(Base):
__tablename__ = 'cti_xlet'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
plugin_name = Column(String(40), nullable=False)
......@@ -25,5 +25,5 @@ class CtiXletLayout(Base):
__tablename__ = 'cti_xlet_layout'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(255), nullable=False)
......@@ -25,7 +25,7 @@ class CtiDirectories(Base):
__tablename__ = 'ctidirectories'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(255))
uri = Column(String(255))
delimiter = Column(String(20))
......
......@@ -25,7 +25,7 @@ class CtiMain(Base):
__tablename__ = 'ctimain'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
ctis_active = Column(Integer, nullable=False, server_default='1')
tlscertfile = Column(String(128))
tlsprivkeyfile = Column(String(128))
......
......@@ -28,7 +28,7 @@ class CtiPhoneHints(Base):
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
idgroup = Column(Integer)
number = Column(String(8))
name = Column(String(255))
......
......@@ -25,7 +25,7 @@ class CtiPhoneHintsGroup(Base):
__tablename__ = 'ctiphonehintsgroup'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(255), nullable=False)
description = Column(String(255))
deletable = Column(Integer)
......@@ -25,7 +25,7 @@ class CtiPresences(Base):
__tablename__ = 'ctipresences'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(255), nullable=False)
description = Column(String(255))
deletable = Column(Integer)
......@@ -25,5 +25,5 @@ class CtiReverseDirectories(Base):
__tablename__ = 'ctireversedirectories'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
directories = Column(Text, nullable=False)
......@@ -25,7 +25,7 @@ class CtiSheetActions(Base):
__tablename__ = 'ctisheetactions'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(50))
description = Column(Text, nullable=False)
whom = Column(String(50))
......
......@@ -25,7 +25,7 @@ class CtiSheetEvents(Base):
__tablename__ = 'ctisheetevents'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
incomingdid = Column(String(50))
hangup = Column(String(50))
dial = Column(String(50))
......
......@@ -29,7 +29,7 @@ class CtiStatus(Base):
UniqueConstraint('presence_id', 'name'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
presence_id = Column(Integer)
name = Column(String(255), nullable=False)
display_name = Column(String(255))
......
......@@ -28,7 +28,7 @@ class Dhcp(Base):
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
active = Column(Integer, nullable=False, server_default='0')
pool_start = Column(String(64), nullable=False, server_default='')
pool_end = Column(String(64), nullable=False, server_default='')
......
......@@ -28,7 +28,7 @@ class Directories(Base):
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
uri = Column(String(255))
dirtype = Column(String(20), nullable=False)
name = Column(String(255))
......
......@@ -30,7 +30,7 @@ class Entity(Base):
UniqueConstraint('name'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
name = Column(String(64), nullable=False, server_default='')
displayname = Column(String(128), nullable=False, server_default='')
phonenumber = Column(String(40), nullable=False, server_default='')
......
......@@ -38,7 +38,7 @@ class Extension(Base):
Index('extensions__idx__typeval', 'typeval'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
commented = Column(Integer, nullable=False, server_default='0')
context = Column(String(39), nullable=False, server_default='')
exten = Column(String(40), nullable=False, server_default='')
......
......@@ -29,7 +29,7 @@ class Features(Base):
Index('features__idx__category', 'category'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
cat_metric = Column(Integer, nullable=False, server_default='0')
var_metric = Column(Integer, nullable=False, server_default='0')
commented = Column(Integer, nullable=False, server_default='0')
......
......@@ -29,7 +29,7 @@ class FuncKey(Base):
__tablename__ = 'func_key'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
type_id = Column(Integer, ForeignKey('func_key_type.id'), nullable=False)
destination_type_id = Column(Integer,
ForeignKey('func_key_destination_type.id'),
......
......@@ -27,7 +27,7 @@ class FuncKeyDestinationType(Base):
__tablename__ = 'func_key_destination_type'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(128), nullable=False)
@classmethod
......
......@@ -25,6 +25,6 @@ class FuncKeyTemplate(Base):
__tablename__ = 'func_key_template'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(128), nullable=True)
private = Column(Boolean, nullable=False, server_default='False')
......@@ -27,7 +27,7 @@ class FuncKeyType(Base):
__tablename__ = 'func_key_type'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
name = Column(String(128), nullable=False)
@classmethod
......
......@@ -28,6 +28,6 @@ class General(Base):
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
timezone = Column(String(128))
configured = Column(Boolean, nullable=False, server_default='False')
......@@ -33,7 +33,7 @@ class GroupFeatures(Base):
Index('groupfeatures__idx__number', 'number'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
name = Column(String(128), nullable=False)
number = Column(String(40), nullable=False, server_default='')
context = Column(String(39), nullable=False)
......
......@@ -25,7 +25,7 @@ class IAXCallNumberLimits(Base):
__tablename__ = 'iaxcallnumberlimits'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
destination = Column(String(39), nullable=False)
netmask = Column(String(39), nullable=False)
calllimits = Column(Integer, nullable=False, server_default='0')
......@@ -32,7 +32,7 @@ class Incall(Base):
Index('incall__idx__exten', 'exten'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
exten = Column(String(40), nullable=False)
context = Column(String(39), nullable=False)
preprocess_subroutine = Column(String(39))
......
......@@ -29,7 +29,7 @@ class LdapFilter(Base):
UniqueConstraint('name'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
ldapserverid = Column(Integer, nullable=False)
name = Column(String(128), nullable=False, server_default='')
user = Column(String(255))
......
......@@ -31,7 +31,7 @@ class LdapServer(Base):
UniqueConstraint('host', 'port'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
name = Column(String(64), nullable=False, server_default='')
host = Column(String(255), nullable=False, server_default='')
port = Column(Integer, nullable=False)
......
......@@ -62,7 +62,7 @@ class LineFeatures(Base):
Index('linefeatures__idx__provisioningid', 'provisioningid'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
protocol = Column(enum.trunk_protocol)
protocolid = Column(Integer)
device = Column(String(32))
......
......@@ -29,7 +29,7 @@ class Mail(Base):
UniqueConstraint('origin'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
mydomain = Column(String(255), nullable=False, server_default='0')
origin = Column(String(255), nullable=False, server_default='xivo-clients.proformatique.com')
relayhost = Column(String(255))
......
......@@ -28,7 +28,7 @@ class MediaServer(Base):
UniqueConstraint('name'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
name = Column(String(128), nullable=False)
display_name = Column(String(128), nullable=False)
voip_ip = Column(String(39), nullable=True)
......
......@@ -31,7 +31,7 @@ class MeetmeFeatures(Base):
Index('meetmefeatures__idx__number', 'confno'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
meetmeid = Column(Integer, nullable=False)
name = Column(String(128), nullable=False)
confno = Column(String(40), nullable=False)
......
......@@ -28,7 +28,7 @@ class Monitoring(Base):
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
maintenance = Column(Integer, nullable=False, server_default='0')
alert_emails = Column(String(4096))
dahdi_monitor_ports = Column(String(255))
......
......@@ -29,7 +29,7 @@ class MusicOnHold(Base):
UniqueConstraint('filename', 'category', 'var_name'),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
cat_metric = Column(Integer, nullable=False, server_default='0')
var_metric = Column(Integer, nullable=False, server_default='0')
commented = Column(Integer, nullable=False, server_default='0')
......
......@@ -30,7 +30,7 @@ class Netiface(Base):
UniqueConstraint('ifname'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
ifname = Column(String(64), nullable=False, server_default='')
hwtypeid = Column(Integer, nullable=False, server_default='65534')
networktype = Column(Enum('data',
......
......@@ -29,7 +29,7 @@ class Paging(Base):
UniqueConstraint('number'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
number = Column(String(32))
duplex = Column(Integer, nullable=False, server_default='0')
ignore = Column(Integer, nullable=False, server_default='0')
......
......@@ -25,7 +25,7 @@ class Phonebook(Base):
__tablename__ = 'phonebook'
id = Column(Integer, primary_key=True)
id = Column(Integer, primary_key=True, autoincrement=True)
title = Column(Enum('mr', 'mrs', 'ms',
name='phonebook_title',
metadata=Base.metadata),
......
......@@ -34,7 +34,7 @@ class PhonebookAddress(Base):
Index('phonebookaddress__uidx__phonebookid_type', 'phonebookid', 'type', unique=True),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
phonebookid = Column(Integer, nullable=False)
address1 = Column(String(30), nullable=False, server_default='')
address2 = Column(String(30), nullable=False, server_default='')
......
......@@ -34,7 +34,7 @@ class PhonebookNumber(Base):
Index('phonebooknumber__uidx__phonebookid_type', 'phonebookid', 'type', unique=True),
)
id = Column(Integer)
id = Column(Integer, autoincrement=True)
phonebookid = Column(Integer, nullable=False)
number = Column(String(40), nullable=False, server_default='')
type = Column(Enum('home', 'office', 'mobile', 'fax', 'other',
......
......@@ -28,7 +28,7 @@ class Provisioning(Base):
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
net4_ip = Column(String(39), nullable=False)
net4_ip_rest = Column(String(39), nullable=False)
username = Column(String(32), nullable=False)
......
......@@ -29,7 +29,7 @@ class QualificationAnswers(Base):
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
sub_qualification_id = Column(Integer)
time = Column(DateTime, server_default=text("(current_timestamp at time zone 'utc')"))
callid = Column(String(128), nullable=False)
......
......@@ -28,6 +28,6 @@ class Qualifications(Base):
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
id = Column(Integer, nullable=False, autoincrement=True)
name = Column(String(128), nullable=False)