From d108f79a1390421799f6301a4558d007884efb7f Mon Sep 17 00:00:00 2001 From: Josh Bonfield Date: Thu, 9 Feb 2017 23:06:22 +0000 Subject: [PATCH] Add upgrade instructions --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 6227837..8ceb606 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,17 @@ ## About This is a custom WHMCS module built for our resellers who would like to register domains directly though [us] (https://smarthosting.co.uk). +## Upgrading from our old module +If you've been running our old domain registrar module (pre February 2017), you'll need to do a few extra things. + +1. Follow the installation instructions below +2. Deactivate and delete the old registrar module, which is called `SmarthostingAPI` +3. Run the followoing SQL on your WHMCS database: +``` +UPDATE `tbldomains` SET `registrar` = 'smarthosting' WHERE `registrar` LIKE 'smarthostingapi'; +UPDATE `tbldomainpricing` SET `autoreg` = 'smarthosting' WHERE `autoreg` LIKE 'smarthostingapi'; +``` + ## Installation 1. Download the module via the following [link](https://github.com/Smart-Hosting/smart-whmcs-domain-registrar-module/releases/latest) 1. Copy the `smarthosting` directory into the respective WHMCS directory in your WHMCS setup: `/whmcs/modules/registrars/`