Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
X
xivo-dao
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xivo.solutions
xivo-dao
Commits
4befe610
Commit
4befe610
authored
Jun 15, 2020
by
Vojtech Sodoma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3366 - add autoincrement option to id column in other tables
parent
1d75df5a
Changes
95
Hide whitespace changes
Inline
Side-by-side
Showing
95 changed files
with
95 additions
and
95 deletions
+95
-95
xivo_dao/alchemy/accessfeatures.py
xivo_dao/alchemy/accessfeatures.py
+1
-1
xivo_dao/alchemy/accesswebservice.py
xivo_dao/alchemy/accesswebservice.py
+1
-1
xivo_dao/alchemy/agentfeatures.py
xivo_dao/alchemy/agentfeatures.py
+1
-1
xivo_dao/alchemy/agentglobalparams.py
xivo_dao/alchemy/agentglobalparams.py
+1
-1
xivo_dao/alchemy/agentgroup.py
xivo_dao/alchemy/agentgroup.py
+1
-1
xivo_dao/alchemy/attachment.py
xivo_dao/alchemy/attachment.py
+1
-1
xivo_dao/alchemy/call_log.py
xivo_dao/alchemy/call_log.py
+1
-1
xivo_dao/alchemy/callfilter.py
xivo_dao/alchemy/callfilter.py
+1
-1
xivo_dao/alchemy/callfiltermember.py
xivo_dao/alchemy/callfiltermember.py
+1
-1
xivo_dao/alchemy/cel.py
xivo_dao/alchemy/cel.py
+1
-1
xivo_dao/alchemy/contexttype.py
xivo_dao/alchemy/contexttype.py
+1
-1
xivo_dao/alchemy/cti_contexts.py
xivo_dao/alchemy/cti_contexts.py
+1
-1
xivo_dao/alchemy/cti_displays.py
xivo_dao/alchemy/cti_displays.py
+1
-1
xivo_dao/alchemy/cti_preference.py
xivo_dao/alchemy/cti_preference.py
+1
-1
xivo_dao/alchemy/cti_profile.py
xivo_dao/alchemy/cti_profile.py
+1
-1
xivo_dao/alchemy/cti_service.py
xivo_dao/alchemy/cti_service.py
+1
-1
xivo_dao/alchemy/cti_xlet.py
xivo_dao/alchemy/cti_xlet.py
+1
-1
xivo_dao/alchemy/cti_xlet_layout.py
xivo_dao/alchemy/cti_xlet_layout.py
+1
-1
xivo_dao/alchemy/ctidirectories.py
xivo_dao/alchemy/ctidirectories.py
+1
-1
xivo_dao/alchemy/ctimain.py
xivo_dao/alchemy/ctimain.py
+1
-1
xivo_dao/alchemy/ctiphonehints.py
xivo_dao/alchemy/ctiphonehints.py
+1
-1
xivo_dao/alchemy/ctiphonehintsgroup.py
xivo_dao/alchemy/ctiphonehintsgroup.py
+1
-1
xivo_dao/alchemy/ctipresences.py
xivo_dao/alchemy/ctipresences.py
+1
-1
xivo_dao/alchemy/ctireversedirectories.py
xivo_dao/alchemy/ctireversedirectories.py
+1
-1
xivo_dao/alchemy/ctisheetactions.py
xivo_dao/alchemy/ctisheetactions.py
+1
-1
xivo_dao/alchemy/ctisheetevents.py
xivo_dao/alchemy/ctisheetevents.py
+1
-1
xivo_dao/alchemy/ctistatus.py
xivo_dao/alchemy/ctistatus.py
+1
-1
xivo_dao/alchemy/dhcp.py
xivo_dao/alchemy/dhcp.py
+1
-1
xivo_dao/alchemy/directories.py
xivo_dao/alchemy/directories.py
+1
-1
xivo_dao/alchemy/entity.py
xivo_dao/alchemy/entity.py
+1
-1
xivo_dao/alchemy/features.py
xivo_dao/alchemy/features.py
+1
-1
xivo_dao/alchemy/func_key_destination_type.py
xivo_dao/alchemy/func_key_destination_type.py
+1
-1
xivo_dao/alchemy/func_key_template.py
xivo_dao/alchemy/func_key_template.py
+1
-1
xivo_dao/alchemy/func_key_type.py
xivo_dao/alchemy/func_key_type.py
+1
-1
xivo_dao/alchemy/general.py
xivo_dao/alchemy/general.py
+1
-1
xivo_dao/alchemy/groupfeatures.py
xivo_dao/alchemy/groupfeatures.py
+1
-1
xivo_dao/alchemy/iaxcallnumberlimits.py
xivo_dao/alchemy/iaxcallnumberlimits.py
+1
-1
xivo_dao/alchemy/incall.py
xivo_dao/alchemy/incall.py
+1
-1
xivo_dao/alchemy/ldapfilter.py
xivo_dao/alchemy/ldapfilter.py
+1
-1
xivo_dao/alchemy/ldapserver.py
xivo_dao/alchemy/ldapserver.py
+1
-1
xivo_dao/alchemy/linefeatures.py
xivo_dao/alchemy/linefeatures.py
+1
-1
xivo_dao/alchemy/mail.py
xivo_dao/alchemy/mail.py
+1
-1
xivo_dao/alchemy/mediaserver.py
xivo_dao/alchemy/mediaserver.py
+1
-1
xivo_dao/alchemy/meetmefeatures.py
xivo_dao/alchemy/meetmefeatures.py
+1
-1
xivo_dao/alchemy/monitoring.py
xivo_dao/alchemy/monitoring.py
+1
-1
xivo_dao/alchemy/musiconhold.py
xivo_dao/alchemy/musiconhold.py
+1
-1
xivo_dao/alchemy/netiface.py
xivo_dao/alchemy/netiface.py
+1
-1
xivo_dao/alchemy/paging.py
xivo_dao/alchemy/paging.py
+1
-1
xivo_dao/alchemy/phonebook.py
xivo_dao/alchemy/phonebook.py
+1
-1
xivo_dao/alchemy/phonebookaddress.py
xivo_dao/alchemy/phonebookaddress.py
+1
-1
xivo_dao/alchemy/phonebooknumber.py
xivo_dao/alchemy/phonebooknumber.py
+1
-1
xivo_dao/alchemy/provisioning.py
xivo_dao/alchemy/provisioning.py
+1
-1
xivo_dao/alchemy/qualification_answers.py
xivo_dao/alchemy/qualification_answers.py
+1
-1
xivo_dao/alchemy/qualifications.py
xivo_dao/alchemy/qualifications.py
+1
-1
xivo_dao/alchemy/queue_log.py
xivo_dao/alchemy/queue_log.py
+1
-1
xivo_dao/alchemy/queue_qualification.py
xivo_dao/alchemy/queue_qualification.py
+1
-1
xivo_dao/alchemy/queuefeatures.py
xivo_dao/alchemy/queuefeatures.py
+1
-1
xivo_dao/alchemy/queueinfo.py
xivo_dao/alchemy/queueinfo.py
+1
-1
xivo_dao/alchemy/queuepenalty.py
xivo_dao/alchemy/queuepenalty.py
+1
-1
xivo_dao/alchemy/queueskill.py
xivo_dao/alchemy/queueskill.py
+1
-1
xivo_dao/alchemy/queueskillcat.py
xivo_dao/alchemy/queueskillcat.py
+1
-1
xivo_dao/alchemy/queueskillrule.py
xivo_dao/alchemy/queueskillrule.py
+1
-1
xivo_dao/alchemy/resolvconf.py
xivo_dao/alchemy/resolvconf.py
+1
-1
xivo_dao/alchemy/rightcall.py
xivo_dao/alchemy/rightcall.py
+1
-1
xivo_dao/alchemy/rightcallexten.py
xivo_dao/alchemy/rightcallexten.py
+1
-1
xivo_dao/alchemy/rightcallmember.py
xivo_dao/alchemy/rightcallmember.py
+1
-1
xivo_dao/alchemy/rights.py
xivo_dao/alchemy/rights.py
+1
-1
xivo_dao/alchemy/route.py
xivo_dao/alchemy/route.py
+1
-1
xivo_dao/alchemy/routepattern.py
xivo_dao/alchemy/routepattern.py
+1
-1
xivo_dao/alchemy/sccpdevice.py
xivo_dao/alchemy/sccpdevice.py
+1
-1
xivo_dao/alchemy/sccpgeneralsettings.py
xivo_dao/alchemy/sccpgeneralsettings.py
+1
-1
xivo_dao/alchemy/sccpline.py
xivo_dao/alchemy/sccpline.py
+1
-1
xivo_dao/alchemy/schedule.py
xivo_dao/alchemy/schedule.py
+1
-1
xivo_dao/alchemy/schedule_time.py
xivo_dao/alchemy/schedule_time.py
+1
-1
xivo_dao/alchemy/sipauthentication.py
xivo_dao/alchemy/sipauthentication.py
+1
-1
xivo_dao/alchemy/stat_agent.py
xivo_dao/alchemy/stat_agent.py
+1
-1
xivo_dao/alchemy/stat_agent_periodic.py
xivo_dao/alchemy/stat_agent_periodic.py
+1
-1
xivo_dao/alchemy/stat_call_on_queue.py
xivo_dao/alchemy/stat_call_on_queue.py
+1
-1
xivo_dao/alchemy/stat_queue.py
xivo_dao/alchemy/stat_queue.py
+1
-1
xivo_dao/alchemy/stat_queue_periodic.py
xivo_dao/alchemy/stat_queue_periodic.py
+1
-1
xivo_dao/alchemy/stat_switchboard_queue.py
xivo_dao/alchemy/stat_switchboard_queue.py
+1
-1
xivo_dao/alchemy/staticiax.py
xivo_dao/alchemy/staticiax.py
+1
-1
xivo_dao/alchemy/staticmeetme.py
xivo_dao/alchemy/staticmeetme.py
+1
-1
xivo_dao/alchemy/staticqueue.py
xivo_dao/alchemy/staticqueue.py
+1
-1
xivo_dao/alchemy/staticsip.py
xivo_dao/alchemy/staticsip.py
+1
-1
xivo_dao/alchemy/staticvoicemail.py
xivo_dao/alchemy/staticvoicemail.py
+1
-1
xivo_dao/alchemy/stats_conf.py
xivo_dao/alchemy/stats_conf.py
+1
-1
xivo_dao/alchemy/subqualifications.py
xivo_dao/alchemy/subqualifications.py
+1
-1
xivo_dao/alchemy/trunkfeatures.py
xivo_dao/alchemy/trunkfeatures.py
+1
-1
xivo_dao/alchemy/user.py
xivo_dao/alchemy/user.py
+1
-1
xivo_dao/alchemy/usercustom.py
xivo_dao/alchemy/usercustom.py
+1
-1
xivo_dao/alchemy/userfeatures.py
xivo_dao/alchemy/userfeatures.py
+1
-1
xivo_dao/alchemy/useriax.py
xivo_dao/alchemy/useriax.py
+1
-1
xivo_dao/alchemy/users.py
xivo_dao/alchemy/users.py
+1
-1
xivo_dao/alchemy/usersip.py
xivo_dao/alchemy/usersip.py
+1
-1
No files found.
xivo_dao/alchemy/accessfeatures.py
View file @
4befe610
...
...
@@ -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'
)
xivo_dao/alchemy/accesswebservice.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/agentfeatures.py
View file @
4befe610
...
...
@@ -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
=
''
)
...
...
xivo_dao/alchemy/agentglobalparams.py
View file @
4befe610
...
...
@@ -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
))
xivo_dao/alchemy/agentgroup.py
View file @
4befe610
...
...
@@ -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
=
''
)
...
...
xivo_dao/alchemy/attachment.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/call_log.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/callfilter.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/callfiltermember.py
View file @
4befe610
...
...
@@ -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'
,
...
...
xivo_dao/alchemy/cel.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/contexttype.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/cti_contexts.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/cti_displays.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/cti_preference.py
View file @
4befe610
...
...
@@ -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
)
xivo_dao/alchemy/cti_profile.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/cti_service.py
View file @
4befe610
...
...
@@ -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
)
xivo_dao/alchemy/cti_xlet.py
View file @
4befe610
...
...
@@ -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
)
xivo_dao/alchemy/cti_xlet_layout.py
View file @
4befe610
...
...
@@ -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
)
xivo_dao/alchemy/ctidirectories.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/ctimain.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/ctiphonehints.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/ctiphonehintsgroup.py
View file @
4befe610
...
...
@@ -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
)
xivo_dao/alchemy/ctipresences.py
View file @
4befe610
...
...
@@ -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
)
xivo_dao/alchemy/ctireversedirectories.py
View file @
4befe610
...
...
@@ -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
)
xivo_dao/alchemy/ctisheetactions.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/ctisheetevents.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/ctistatus.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/dhcp.py
View file @
4befe610
...
...
@@ -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
=
''
)
...
...
xivo_dao/alchemy/directories.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/entity.py
View file @
4befe610
...
...
@@ -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
=
''
)
...
...
xivo_dao/alchemy/features.py
View file @
4befe610
...
...
@@ -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'
)
...
...
xivo_dao/alchemy/func_key_destination_type.py
View file @
4befe610
...
...
@@ -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
...
...
xivo_dao/alchemy/func_key_template.py
View file @
4befe610
...
...
@@ -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'
)
xivo_dao/alchemy/func_key_type.py
View file @
4befe610
...
...
@@ -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
...
...
xivo_dao/alchemy/general.py
View file @
4befe610
...
...
@@ -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'
)
xivo_dao/alchemy/groupfeatures.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/iaxcallnumberlimits.py
View file @
4befe610
...
...
@@ -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'
)
xivo_dao/alchemy/incall.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/ldapfilter.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/ldapserver.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/linefeatures.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/mail.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/mediaserver.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/meetmefeatures.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/monitoring.py
View file @
4befe610
...
...
@@ -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
))
...
...
xivo_dao/alchemy/musiconhold.py
View file @
4befe610
...
...
@@ -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'
)
...
...
xivo_dao/alchemy/netiface.py
View file @
4befe610
...
...
@@ -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'
,
...
...
xivo_dao/alchemy/paging.py
View file @
4befe610
...
...
@@ -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'
)
...
...
xivo_dao/alchemy/phonebook.py
View file @
4befe610
...
...
@@ -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
),
...
...
xivo_dao/alchemy/phonebookaddress.py
View file @
4befe610
...
...
@@ -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
=
''
)
...
...
xivo_dao/alchemy/phonebooknumber.py
View file @
4befe610
...
...
@@ -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'
,
...
...
xivo_dao/alchemy/provisioning.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/qualification_answers.py
View file @
4befe610
...
...
@@ -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
)
...
...
xivo_dao/alchemy/qualifications.py
View file @
4befe610
...
...
@@ -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
)
active
=
Column
(
Integer
,
nullable
=
False
,
server_default
=
'1'
)
xivo_dao/alchemy/queue_log.py
View file @
4befe610
...
...
@@ -42,4 +42,4 @@ class QueueLog(Base):
data3
=
Column
(
Text
,
server_default
=
''
)
data4
=
Column
(
Text
,
server_default
=
''
)
data5
=
Column
(
Text
,
server_default
=
''
)
id
=
Column
(
Integer
)
id
=
Column
(
Integer
,
autoincrement
=
True
)
xivo_dao/alchemy/queue_qualification.py
View file @
4befe610
...
...
@@ -28,6 +28,6 @@ class QueueQualification(Base):
PrimaryKeyConstraint
(
'id'
),
)
id
=
Column
(
Integer
,
nullable
=
False
)
id
=
Column
(
Integer
,
nullable
=
False
,
autoincrement
=
True
)
queue_id
=
Column
(
Integer
,
nullable
=
False
)
qualification_id
=
Column
(
Integer
,
nullable
=
False
)
xivo_dao/alchemy/queuefeatures.py
View file @
4befe610
...
...
@@ -33,7 +33,7 @@ class QueueFeatures(Base):
Index
(
'queuefeatures__idx__number'
,
'number'
),
)
id
=
Column
(
Integer
)