From c878b57171366e7012417f91223f3a0cb89a2dd6 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:49:41 +0300 Subject: [PATCH] Launch phases are now off by default --- database/registry.mariadb.sql | 2 +- database/registry.postgres.sql | 2 +- docs/upgrade.md | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/database/registry.mariadb.sql b/database/registry.mariadb.sql index 87aff51..bcb0ea1 100644 --- a/database/registry.mariadb.sql +++ b/database/registry.mariadb.sql @@ -921,7 +921,7 @@ INSERT INTO `registry`.`settings` (`name`, `value`) VALUES ('phone', '+123456789'), ('handle', 'RXX'), ('email', 'contact@example.com'), -('launch_phases', 'on'), +('launch_phases', NULL), ('whois_server', 'whois.example.com'), ('rdap_server', 'https://rdap.example.com'), ('currency', 'USD'); diff --git a/database/registry.postgres.sql b/database/registry.postgres.sql index 388b493..62054e4 100644 --- a/database/registry.postgres.sql +++ b/database/registry.postgres.sql @@ -849,7 +849,7 @@ INSERT INTO settings (name, value) VALUES ('phone', '+123456789'), ('handle', 'RXX'), ('email', 'contact@example.com'), -('launch_phases', 'on'), +('launch_phases', NULL), ('whois_server', 'whois.example.com'), ('rdap_server', 'https://rdap.example.com'), ('currency', 'USD'); diff --git a/docs/upgrade.md b/docs/upgrade.md index 27fec83..afbbcdb 100644 --- a/docs/upgrade.md +++ b/docs/upgrade.md @@ -39,13 +39,17 @@ mysql -u your_username -p 2. Update `registrar` Table: ```sql -USE your_database_name; +USE registry; ALTER TABLE registrar CHANGE COLUMN `vat_number` `vatNumber` varchar(30) DEFAULT NULL, ADD COLUMN `companyNumber` varchar(30) DEFAULT NULL BEFORE `vatNumber`; + +UPDATE settings SET value = NULL WHERE name = 'launch_phases'; ``` +**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 1. Add `minimal_data` Setting in `config.php`/`.env` Files: