Skip to content

Guard agency_conversation_token on its own column name in migrations - #716

Merged
julien-nc merged 1 commit into
mainfrom
fix/713/migration-mistake
Oct 23, 2026
Merged

julien-nc merged 1 commit into
mainfrom
fix/713/migration-mistake

Conversation

@julien-nc

Copy link
Copy Markdown
Member

fixes #713

Fix mistake in migration Version020200Date20241218145833.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc

Copy link
Copy Markdown
Member Author

/backport to stable34

@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7aa297cf-43f4-4d79-b40b-b4e64e28b2b7
📥 Commits

Reviewing files that changed from the base of the PR and between ddc85f8 and f94dfcd.

📒 Files selected for processing: 1
  • lib/Migration/Version020200Date20241218145833.php

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The migration now checks whether assistant_chat_sns has agency_conversation_token before adding that column. The agency_pending_actions migration is unchanged.

Priority: ⬇️ Low

Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to f94df

No merge-blocking risk is identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title states that the migration guard for agency_conversation_token now checks its own column name. The raw summary confirms the migration change in Version020200Date20241218145833 matches this, s…
Description check Passed The description says the PR fixes #713 and corrects a mistake in migration Version020200Date20241218145833. This relates directly to the single-line migration change. The description is brief, but it …
Linked Issues check Passed [#713] The issue requires the guard for agency_conversation_token in Version020200Date20241218145833 to check that column's own name, not conversation_token. The whole-PR diff against merge base…
Out of Scope Changes check Passed The whole-PR diff against merge base ddc85f81 contains one changed line. It replaces the guard column name conversation_token with agency_conversation_token in `lib/Migration/Version020200Date20…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Full details: Title check

Explanation

The title states that the migration guard for agency_conversation_token now checks its own column name. The raw summary confirms the migration change in Version020200Date20241218145833 matches this, so the title is specific and on-topic. The title is slightly long (9 words, 68 characters), but it is clear.

Full details: Description check

Explanation

The description says the PR fixes #713 and corrects a mistake in migration Version020200Date20241218145833. This relates directly to the single-line migration change. The description is brief, but it is related to the changeset and the linked objectives.

Full details: Linked Issues check

Explanation

[#713] The issue requires the guard for agency_conversation_token in Version020200Date20241218145833 to check that column's own name, not conversation_token. The whole-PR diff against merge base ddc85f81 changes one line in lib/Migration/Version020200Date20241218145833.php. The guard at line 32 now reads if (!$table-&gt;hasColumn('agency_conversation_token')). The reviewed head file confirms this. The agency_pending_actions guard is unchanged and already uses its own name, as the issue expects. The issue sets no test requirement, and no coding requirement remains unmet. Rerunning the step on a table that already has the column now skips the add, which removes the duplicate-column failure described in the issue. The fix was not run against a database in this review. Its effect rests on the code change and the guard logic.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff against merge base ddc85f81 contains one changed line. It replaces the guard column name conversation_token with agency_conversation_token in lib/Migration/Version020200Date20241218145833.php. This change directly implements the objective of #713. No other file or hunk changes. The raw summary states +1/-1 and no declaration changes, and the diff matches that. No unrelated change is present. The PR description references #713 only. The backport request in the PR objectives is a release-process item, not a code change in this PR.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

🔧 PHPStan (2.3.0)

PHPStan reported 1 non-file analysis error(s); analysis is incomplete

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@julien-nc
julien-nc merged commit fd1b932 into main Oct 23, 2026
16 checks passed
@julien-nc
julien-nc deleted the fix/713/migration-mistake branch October 23, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration Version020200Date20241218145833 guards agency_conversation_token on the wrong column name

2 participants