public inbox for [email protected]  
help / color / mirror / Atom feed
From: Pradip Parkale <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM5822]: Unable to change Start value for existing sequence
Date: Mon, 5 Oct 2020 15:47:42 +0530
Message-ID: <CAJ9T6StGSB-vnHVM-QhRJn3c-5t02ySvTuFr5r88cmG8-cKAkg@mail.gmail.com> (raw)

Hi Hackers,

Please find the attached patch to allow the user to change the start value
of the existing sequence.

-- 
Thanks & Regards,
Pradip Parkale
Software Engineer | EnterpriseDB Corporation


Attachments:

  [application/octet-stream] RM5855.patch (1.0K, 3-RM5855.patch)
  download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/static/js/sequence.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/static/js/sequence.js
index 8e9f20e27..af629675c 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/static/js/sequence.js
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/sequences/static/js/sequence.js
@@ -143,10 +143,7 @@ define('pgadmin.node.sequence', [
           mode: ['properties', 'create', 'edit'], group: gettext('Definition'),
         },{
           id: 'start', label: gettext('Start'), type: 'int',
-          mode: ['properties', 'create'], group: gettext('Definition'),
-          readonly: function(m) {
-            return !m.isNew();
-          },
+          mode: ['properties', 'create', 'edit'], group: gettext('Definition'),
         },{
           id: 'minimum', label: gettext('Minimum'), type: 'int',
           mode: ['properties', 'create', 'edit'], group: gettext('Definition'),


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin][RM5822]: Unable to change Start value for existing sequence
  In-Reply-To: <CAJ9T6StGSB-vnHVM-QhRJn3c-5t02ySvTuFr5r88cmG8-cKAkg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox