Skip to content

fix go: migrate missing table chatchannel - #18944

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
myf-bee:fix-go-migrate
Aug 28, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
myf-bee:fix-go-migrate

Conversation

@myf-bee

@myf-bee myf-bee commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

fix go: migrate missing table chatchannel

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Aug 28, 2026
@myf-bee myf-bee added the ci Continue Integration label Aug 28, 2026
@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4ded038d-df66-4aca-ba3f-b66b141f884a

📥 Commits

Reviewing files that changed from the base of the PR and between f62b10d and c452108.

📒 Files selected for processing (1)
  • internal/dao/database.go

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Changes

ChatChannel database migration

Layer / File(s) Summary
Register ChatChannel migration
internal/dao/database.go
InitDB includes entity.ChatChannel{} in the auto-migration model list.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to c4521

This localized change registers the existing ChatChannel model for database migration without changing APIs, permissions, or application behavior beyond creating the intended table when migrations run. No actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: jinhai-cn, yuzhichang, b uua436

Poem

A rabbit checks the migration line
ChatChannel joins the schema design
The table grows with one small cue
Auto-migration knows what to do
Hop by hop, the database shines

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description identifies the migration issue but does not use the required "### Summary" heading or provide the requested background context. Add a "### Summary" section. Briefly explain that the change adds entity.ChatChannel{} to InitDB auto-migration so the chat_channel table is created or migrated.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: fixing the missing ChatChannel database migration.
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.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI

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.

@JinHai-CN
JinHai-CN merged commit c4e989f into infiniflow:main Aug 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants