mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-04 11:37:22 +02:00
Added tech contact in registrar db
This commit is contained in:
parent
46002b1505
commit
ca9dc2f179
3 changed files with 22 additions and 6 deletions
|
@ -858,9 +858,11 @@ INSERT INTO `registry`.`registrar_contact` (`id`, `registrar_id`, `type`, `title
|
|||
(1, 1, 'owner', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(2, 1, 'billing', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(3, 1, 'abuse', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(4, 2, 'owner', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(5, 2, 'billing', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(6, 2, 'abuse', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org');
|
||||
(4, 1, 'tech', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(5, 2, 'owner', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(6, 2, 'billing', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(7, 2, 'abuse', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
(8, 2, 'tech', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org');
|
||||
|
||||
INSERT INTO `registry`.`registrar_ote` (`registrar_id`, `command`, `result`) VALUES
|
||||
(1, 'contact:create', 9),
|
||||
|
|
|
@ -783,9 +783,11 @@ INSERT INTO registrar_contact (id, registrar_id, type, title, first_name, middle
|
|||
('1', '1', 'owner', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('2', '1', 'billing', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('3', '1', 'abuse', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('4', '2', 'owner', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('5', '2', 'billing', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('6', '2', 'abuse', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org');
|
||||
('4', '1', 'tech', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('5', '2', 'owner', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('6', '2', 'billing', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('7', '2', 'abuse', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org'),
|
||||
('8', '2', 'tech', NULL, 'Test', NULL, 'Name', '', '', NULL, NULL, 'Lviv', '', '', 'ua', '', NULL, 'test@namingo.org');
|
||||
SELECT setval('registrar_contact_id_seq', COALESCE((SELECT MAX(id) FROM registrar_contact), 0) + 1);
|
||||
|
||||
INSERT INTO registrar_ote (registrar_id, command, result) VALUES
|
||||
|
|
|
@ -130,6 +130,18 @@ mysql -u$DB_USER -p$DB_PASS $DB_NAME -e "ALTER TABLE rde_escrow_deposits DROP IN
|
|||
echo "Creating new UNIQUE KEY deposit_id_deposit_type (deposit_id, deposit_type, file_name)..."
|
||||
mysql -u$DB_USER -p$DB_PASS $DB_NAME -e "ALTER TABLE rde_escrow_deposits ADD UNIQUE KEY deposit_id_deposit_type (deposit_id, deposit_type, file_name);"
|
||||
|
||||
echo "Copying owner contacts as tech where missing..."
|
||||
mysql -u$DB_USER -p$DB_PASS $DB_NAME <<EOF
|
||||
INSERT INTO registrar_contact (registrar_id, type, title, first_name, middle_name, last_name, org, street1, street2, street3, city, sp, pc, cc, voice, fax, email)
|
||||
SELECT registrar_id, 'tech', title, first_name, middle_name, last_name, org, street1, street2, street3, city, sp, pc, cc, voice, fax, email
|
||||
FROM registrar_contact rc
|
||||
WHERE type = 'owner'
|
||||
AND NOT EXISTS (
|
||||
SELECT 1 FROM registrar_contact
|
||||
WHERE registrar_id = rc.registrar_id AND type = 'tech'
|
||||
);
|
||||
EOF
|
||||
|
||||
echo "Database structure updated successfully."
|
||||
|
||||
# Check the Linux distribution and version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue