Skip to content

Fix tracked items table bootstrap on SQLite#2778

Merged
chubes4 merged 3 commits into
mainfrom
fix/sqlite-tracked-items-dbdelta
Jun 23, 2026
Merged

Fix tracked items table bootstrap on SQLite#2778
chubes4 merged 3 commits into
mainfrom
fix/sqlite-tracked-items-dbdelta

Conversation

@chubes4

@chubes4 chubes4 commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a reusable table-existence helper that uses SQLite's native schema table on SQLite and SHOW TABLES on MySQL.
  • Skip tracked-items dbDelta on SQLite when the table already exists.
  • Prevent repeated noisy table-already-exists errors during normal bootstrap on Studio/SQLite installs.

Testing

  • php -l inc/Core/Database/BaseRepository.php
  • php -l inc/Core/Database/TrackedItems/TrackedItems.php
  • Verified the active Studio SQLite table lookup returns wp_datamachine_tracked_items via sqlite_master.

AI assistance

  • AI assistance: Yes
  • Tool(s): openai/gpt-5.5 via OpenCode
  • Used for: Diagnosing the SQLite bootstrap error, drafting the table-existence guard, and preparing the PR.

@homeboy-ci

homeboy-ci Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine

Lint

lint — failed

ℹ️ Auto-fix: homeboy lint data-machine --path /home/runner/work/data-machine/data-machine --changed-since 7bb7ac7 --fix (or homeboy refactor data-machine --path /home/runner/work/data-machine/data-machine --changed-since 7bb7ac7 --from lint --write)
ℹ️ Some issues may require manual fixes
ℹ️ Full options: homeboy docs commands/lint
Deep dive: homeboy lint data-machine --changed-since 7bb7ac7

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-lint-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-lint-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/27989897108

Test

test — passed

ℹ️ No impacted tests found for --changed-since 7bb7ac7
ℹ️ Run full suite if needed: homeboy test data-machine
Deep dive: homeboy test data-machine --changed-since 7bb7ac7

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-test-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-test-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/27989897108

Audit

audit — passed

  • audit — 235 finding(s)
  • Total: 235 finding(s)

Deep dive: homeboy audit data-machine --changed-since 7bb7ac7

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-audit-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-audit-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine/actions/runs/27989897108
Tooling versions
  • Homeboy CLI: homeboy 0.251.0+c28f94859b79+835043ab
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 1ef9a47c
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 62cb966 into main Jun 23, 2026
4 of 5 checks passed
@chubes4 chubes4 deleted the fix/sqlite-tracked-items-dbdelta branch June 23, 2026 00:09
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