Jump to content

Can anyone help me make this change in the database?


Si

Recommended Posts

I'm a nominet tag holder and basically, (because of their pricing structure), I want to force all existing domain renewals to renew for a 2 year period rather than 1. (The way it used to be until a couple of years back).

 

So basically I have a lot of UK domains which are set to renew yearly, and I want them to renew 2 yearly - and at the 2 yearly price.

 

Can anyone help provide me with the mysql command that I would need to run in phpmyadmin to achieve this?

 

Thank you.

Edited by Si
Link to comment
Share on other sites

Thanks for the reply.

 

So, would this be correct?

 

Run this first

UPDATE tbldomains SET registrationperiod = "2" WHERE domain like "%.uk" AND registrationperiod = "1";

then

UPDATE tbldomains SET recurringamount = "12.99" WHERE domain like "%.uk" AND registrationperiod = "2";

 

(or use the bulk pricing updater for the second command)

 

The part I'm unsure of is WHERE domain like "%.uk"

Would that cover .co.uk, .org.uk and .me.uk domains or should I run 3 separate commands with something like

WHERE domain like "%.co.uk"

WHERE domain like "%.org.uk"

WHERE domain like "%.me.uk" ?

 

Thanks for the help.

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