Jump to content

Synchronize all domains's due date to expiration date


Recommended Posts

3 hours ago, hkhost said:

Is there any option or database query command to synchronize a domains' due date to its expiration date?

other than using the domain sync option - which is only valid if the registrar supports the functionality.

if you just wanted to run a query to make ALL of the next due dates the same as the expiry dates...

UPDATE tbldomains
SET nextduedate = expirydate

if it was for a specific domain or status, then you would add a where statement...

UPDATE tbldomains
SET nextduedate = expirydate
WHERE domain = 'whmcs.com'

though if it were a specific domain, i'd just manually edit the values in the database rather than run a query. 🙂

as ever with these queries, always remember to take a database backup before running them - because there is no undo option after it has been ran! ⚠️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated