mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-03 16:21:50 +02:00
Added more details to the upgrade documentation
This commit is contained in:
parent
9a5e949f2e
commit
e2a7e9b054
1 changed files with 29 additions and 1 deletions
|
@ -28,7 +28,7 @@ mysqldump -u your_username -p your_database_name > database_backup.sql
|
|||
git clone https://github.com/getnamingo/registry /opt/upgrade
|
||||
```
|
||||
|
||||
## Step 3: Make Database Changes
|
||||
## Step 3a: Make Database Changes (from v1.0.0-RC4)
|
||||
|
||||
1. Access MySQL Terminal:
|
||||
|
||||
|
@ -48,6 +48,34 @@ ADD COLUMN `companyNumber` varchar(30) DEFAULT NULL BEFORE `vatNumber`;
|
|||
UPDATE settings SET value = NULL WHERE name = 'launch_phases';
|
||||
```
|
||||
|
||||
## Step 3b: Make Database Changes (from v1.0.0-RC5)
|
||||
|
||||
1. Access MySQL Terminal:
|
||||
|
||||
```bash
|
||||
mysql -u your_username -p
|
||||
```
|
||||
|
||||
2. Update `registrar` Table:
|
||||
|
||||
```sql
|
||||
USE registry;
|
||||
|
||||
ALTER TABLE `domain_price`
|
||||
ADD `registrar_id` int(10) unsigned NULL AFTER `tldid`;
|
||||
|
||||
ALTER TABLE `domain_price`
|
||||
ADD UNIQUE `tldid_command_registrar_id` (`tldid`, `command`, `registrar_id`),
|
||||
DROP INDEX `unique_record`;
|
||||
|
||||
ALTER TABLE `domain_restore_price`
|
||||
ADD `registrar_id` int(10) unsigned NULL AFTER `tldid`;
|
||||
|
||||
ALTER TABLE `domain_restore_price`
|
||||
ADD UNIQUE `tldid_registrar_id` (`tldid`, `registrar_id`),
|
||||
DROP INDEX `tldid`;
|
||||
```
|
||||
|
||||
**Warning: If you have already activated the database audit feature, you will need to update the respective audit table to reflect these changes as well.**
|
||||
|
||||
## Step 4: Update Configuration Files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue