fix: Detect and sync missing columns even when schema version is unchanged#990
fix: Detect and sync missing columns even when schema version is unchanged#990rubenvdlinde wants to merge 3 commits intodevelopmentfrom
Conversation
…anged ensureTableForRegisterSchema previously skipped sync when the stored schema version matched. If columns were added to a schema after the version was stored (without a proper sync), the table would be missing columns indefinitely. Now performs a fast sanity check comparing required columns against actual table columns. If any are missing, forces a sync regardless of the version hash. Closes #974
Quality Report
Summary
PHP Quality
Vue Quality
Security
License Compliance
composer dependencies (147 total)
npm dependencies (586 total)
PHPUnit TestsPHPUnit tests were not enabled for this run. Integration Tests (Newman)Newman integration tests were not enabled for this run. E2E Tests (Playwright)Playwright E2E tests were not enabled for this run. Generated automatically by the Quality workflow.
|
Quality Report
Summary
PHP Quality
Vue Quality
Security
License Compliance
composer dependencies (147 total)
npm dependencies (595 total)
PHPUnit TestsPHPUnit tests were not enabled for this run. Integration Tests (Newman)Newman integration tests were not enabled for this run. E2E Tests (Playwright)Playwright E2E tests were not enabled for this run. Generated automatically by the Quality workflow.
|
Quality Report
Summary
PHP Quality
Vue Quality
Security
License Compliance
composer dependencies (147 total)
npm dependencies (595 total)
PHPUnit TestsPHPUnit tests were not enabled for this run. Integration Tests (Newman)Newman integration tests were not enabled for this run. E2E Tests (Playwright)Playwright E2E tests were not enabled for this run. Generated automatically by the Quality workflow.
|
Summary
ensureTableForRegisterSchemapreviously skipped sync when the stored schema version hash matchedbuildTableColumnsFromSchemaagainst actual table columns fromgetExistingTableColumnsRoot cause
The Procest case schema (204) had
workflowTemplateandworkflowVersionproperties added after the magic table was created. The version hash was stored as "current" without the columns being created, so subsequentensureTablecalls saw no change and skipped sync.Test plan
{tags: [...]}no longer 500s)Closes #974