fix: SQL schema divergence between install.sql and install.mysql.sql #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Two SQL install files exist with different schemas for the same tables:
source/plugins/.../install.sql(older):work_orders: usessite_address,site_lat/lng,work_typeENUM,labor_cost/parts_cost, missingcategory,payment_status,photos_before/aftertechnicians:skillsVARCHAR(500), missingspecialtiesJSON,certifications,license_number,rating,total_jobs,photoequipment: missingcondition_rating,last_service_date,next_service_date,service_addresschecklists: has separatechecklist_itemstable withitem_typeENUMsource/packages/.../install.mysql.sql(newer, richer):work_orders: usesservice_address,service_lat/lng,categoryENUM (plumbing/electrical/hvac…),payment_status,photos_before/afterJSON,pm_agreement_idtechnicians:specialtiesJSON,certifications,license_number,rating,total_jobs,photoequipment:condition_ratingENUM,last_service_date,next_service_date,service_addresschecklists:itemsJSON column (no separate items table)Fix
install.mysql.sqlversion appears more complete)install.sqlfile once duplicate directories are cleaned up (#35)sql/updates/migration files for any schema changes needed for existing installationsBranch created:
feature/36-fix-sql-schema-divergence-between-instal