chore: Remove dead catid column from locations table #58

Closed
opened 2026-06-28 15:36:23 +00:00 by jmiller · 1 comment
Owner

Summary

The #__mokosuitestorelocator_locations table has a catid INT column that is no longer used. Multi-category support (#1) uses the junction table #__mokosuitestorelocator_location_categories instead.

Impact

  • Column is populated on insert but never read for filtering
  • Admin form still has a single-category dropdown bound to catid
  • No functional impact — just dead schema

Fix

  1. Remove catid column from install.mysql.sql
  2. Add SQL update file to DROP COLUMN catid
  3. Remove catid field from location.xml form if still present
  4. Clean up any model references

Priority

P3 — cleanup, no functional impact.

## Summary The `#__mokosuitestorelocator_locations` table has a `catid` INT column that is no longer used. Multi-category support (#1) uses the junction table `#__mokosuitestorelocator_location_categories` instead. ## Impact - Column is populated on insert but never read for filtering - Admin form still has a single-category dropdown bound to `catid` - No functional impact — just dead schema ## Fix 1. Remove `catid` column from `install.mysql.sql` 2. Add SQL update file to `DROP COLUMN catid` 3. Remove `catid` field from `location.xml` form if still present 4. Clean up any model references ## Priority P3 — cleanup, no functional impact.
Author
Owner

Fixed:

  • Removed catid column and idx_catid index from install.mysql.sql
  • Added sql/updates/mysql/01.00.02.sql with DROP COLUMN IF EXISTS catid and DROP INDEX IF EXISTS idx_catid
  • No model/form references to clean up — location form already uses multi-select junction table (categories field)
Fixed: - Removed `catid` column and `idx_catid` index from `install.mysql.sql` - Added `sql/updates/mysql/01.00.02.sql` with `DROP COLUMN IF EXISTS catid` and `DROP INDEX IF EXISTS idx_catid` - No model/form references to clean up — location form already uses multi-select junction table (`categories` field)
Sign in to join this conversation.