Ensure sequence start value is shown in SQL and properties list. Fixes #1155
parent
19bd021696
commit
c1c2fb9df9
|
@ -265,6 +265,7 @@ class SequenceView(PGChildNodeView):
|
|||
row['minimum'] = rset1['rows'][0]['min_value']
|
||||
row['maximum'] = rset1['rows'][0]['max_value']
|
||||
row['increment'] = rset1['rows'][0]['increment_by']
|
||||
row['start'] = rset1['rows'][0]['start_value']
|
||||
row['cache'] = rset1['rows'][0]['cache_value']
|
||||
row['cycled'] = rset1['rows'][0]['is_cycled']
|
||||
|
||||
|
|
|
@ -144,16 +144,16 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
|
|||
},{
|
||||
id: 'comment', label:'{{ _('Comment') }}', type: 'multiline',
|
||||
mode: ['properties', 'create', 'edit']
|
||||
},{
|
||||
id: 'current_value', label: '{{ _('Current value') }}', type: 'int',
|
||||
mode: ['properties', 'edit'], group: '{{ _('Definition') }}'
|
||||
},{
|
||||
id: 'increment', label: '{{ _('Increment') }}', type: 'int',
|
||||
mode: ['properties', 'create', 'edit'], group: '{{ _('Definition') }}',
|
||||
min: 1
|
||||
},{
|
||||
id: 'start', label: '{{ _('Start') }}', type: 'int',
|
||||
mode: ['create'], group: '{{ _('Definition') }}'
|
||||
},{
|
||||
id: 'current_value', label: '{{ _('Current value') }}', type: 'int',
|
||||
mode: ['properties', 'edit'], group: '{{ _('Definition') }}'
|
||||
mode: ['properties', 'create'], group: '{{ _('Definition') }}'
|
||||
},{
|
||||
id: 'minimum', label: '{{ _('Minimum') }}', type: 'int',
|
||||
mode: ['properties', 'create', 'edit'], group: '{{ _('Definition') }}'
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
SELECT
|
||||
last_value,
|
||||
min_value,
|
||||
max_value,
|
||||
max_value,
|
||||
start_value,
|
||||
cache_value,
|
||||
is_cycled,
|
||||
increment_by,
|
||||
increment_by,
|
||||
is_called
|
||||
FROM {{ conn|qtIdent(data.schema) }}.{{ conn|qtIdent(data.name) }}
|
Loading…
Reference in New Issue