Menu

Question in "Edit Database Script"

2014-02-20
2014-02-27
  • Xiaobo Yang

    Xiaobo Yang - 2014-02-20

    hi,

    I run into trouble when "Edit Database Script". When I "Edit Database Script", I clicked the checkbox "Give latest version number to the edited script (use with care!) ". After committing the form, the script has a incremented and newest versionnr, but the question is the incremented versionnr isn't applied to tbbranch.versionnr and tbmodule.lastversionnr, and so right after committing the form, I cannot get the correct versionnr by calling dbsync_automated_currentversion.php and cannot Generate Synchronization Script in deltaclient. However, I can get the correct Synchronization Script in web page which calls dbsync_update.php.

    Maybe, in handling "Edit Database Script" form data, if "Give latest version number to the edited script (use with care!) " is checked, the corresponding head/branches' versionnr should also be updated.

    How do you guys think.

     
    • dangermouse

      dangermouse - 2014-02-27

      hi Xiabao,

      here a patch for deltasql client for the 'Edit Database Script' issue, i
      tested it without deltaclient.
      Does this patch work?
      Thx

      Tiz

      On Thu, Feb 20, 2014 at 4:19 PM, Xiaobo Yang xiaoboyangcn@users.sf.netwrote:

      hi,

      I run into trouble when "Edit Database Script". When I "Edit Database
      Script", I clicked the checkbox "Give latest version number to the edited
      script (use with care!) ". After committing the form, the script has a
      incremented and newest versionnr, but the question is the incremented
      versionnr isn't applied to tbbranch.versionnr and tbmodule.lastversionnr,
      and so right after committing the form, I cannot get the correct versionnr
      by calling dbsync_automated_currentversion.php and cannot Generate
      Synchronization Script in deltaclient. However, I can get the correct
      Synchronization Script in web page which calls dbsync_update.php.

      Maybe, in handling "Edit Database Script" form data, if "Give latest
      version number to the edited script (use with care!) " is checked, the
      corresponding head/branches' versionnr should also be updated.

      How do you guys think.

      Question in "Edit Database Script"https://sourceforge.net/p/deltasql/discussion/general/thread/32bc84aa/?limit=25#25ae

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/deltasql/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • dangermouse

    dangermouse - 2014-02-27

    hi Xiaobo,

    i did a patch for the issue, if you send me an email at tiziano.mengotti AT gmail.com i'll send an edit_script_execution.php file to test.
    thx

    dm

     

Log in to post a comment.