bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 59 forks source link

NRO Decommission: check for NR numbers exist only in Oracle but not in namex #24538

Open eve-git opened 2 days ago

eve-git commented 2 days ago

The current function to generate a new NR number uses a random number that excludes existing NR numbers in PostgreSQL but no longer checks Oracle. Consequently, duplications may occur in Oracle.

We need to double-check the production environment for both Oracle and PostgreSQL before code release. If any NR numbers exist only in Oracle, they can be added to the nr_number_exclude table, as the NR generation function also excludes numbers listed in this table.