Digital Sovereignty for everyone

Database tables

All tables use the network base prefix and live on the main site. They are created by LH_Addresses_Table::maybe_upgrade(), keyed on schema_version() (currently 0.2.0) stored in the network option lh_addresses-schema_version. The 0.2.0 upgrade rebuilds a 0.1.0 uses table only while it is empty (dbDelta cannot change a primary key); one with rows holds the upgrade back and logs it.

{base_prefix}lh_addresses

  • id, object_type (user), object_id (user ID)
  • country_code (ISO 3166-1 alpha-2), administrative_area, locality, dependent_locality, postal_code, sorting_code, address_line1, address_line2
  • source (where it came from), created_by, validation_status
  • geocode_status (pending, done, failed, skipped), geocode_attempts, geocode_accuracy, geocoded_at
  • created, updated (GMT); ended_at, ended_by: set when the address was replaced by a new row

{base_prefix}lh_address_uses

id, address_id, blog_id (0 for the member’s own book), type, created, created_by, ended_at, ended_by. Indexes on address_id and (blog_id, type, ended_at). A current use has ended_at NULL; at most one current use per user, site and type, enforced in code.

{base_prefix}lh_address_geo

address_id, geo_point (POINT, NOT NULL, spatial index), latitude, longitude. A row exists only once an address is geocoded; it is a side table because a spatial index needs a NOT NULL column. Points stay with replaced addresses.

History

Nothing is deleted or overwritten: changes end rows and start new ones, so the tables themselves are the history. The actions this plugin fires remain available to LH Audit Trail for who-did-what records.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.