Skip to content

Move collect_query/collect_plan upgrade to proper upgrade path#357

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/upgrade-path-collect-flags
Feb 27, 2026
Merged

Move collect_query/collect_plan upgrade to proper upgrade path#357
erikdarlingdata merged 1 commit intodevfrom
fix/upgrade-path-collect-flags

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Remove ALTER TABLE upgrade blocks from 01_install_database.sql — upgrade logic belongs in upgrades/ folder, not install scripts
  • Create upgrades/2.0.0-to-2.1.0/ with idempotent upgrade script for collect_query and collect_plan columns on config.collection_schedule
  • CREATE TABLE in 01_install_database.sql already has the columns for fresh installs

Test plan

  • Fresh install creates columns via CREATE TABLE
  • Upgrade from 2.0.0 adds columns via upgrade script

🤖 Generated with Claude Code

…→2.1.0)

Remove ALTER TABLE blocks from 01_install_database.sql — upgrade logic
belongs in upgrades/ folder, not install scripts. CREATE TABLE already
has the columns for fresh installs. (#337)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit f194465 into dev Feb 27, 2026
7 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/upgrade-path-collect-flags branch February 27, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant