Skip to content

fix(orion-server): prevent duplicate table creation#1590

Merged
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
slow2342:fix/duplicate-table-creation
Oct 27, 2025
Merged

fix(orion-server): prevent duplicate table creation#1590
benjamin-747 merged 1 commit into
gitmono-dev:mainfrom
slow2342:fix/duplicate-table-creation

Conversation

@slow2342

Copy link
Copy Markdown
Contributor

内容

去除了Orion Server初始化创建Table,现在只通过Migration操作数据表

Signed-off-by: MYUU <1405758738@qq.com>
@slow2342 slow2342 force-pushed the fix/duplicate-table-creation branch from d4828ef to 4afa9c2 Compare October 27, 2025 07:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes duplicate table creation logic from Orion Server's initialization. The change ensures database schema management is handled solely through migrations rather than programmatically creating tables at startup.

Key Changes:

  • Removed the setup_tables function that created tables using SeaORM's schema builder
  • Eliminated the call to setup_tables during server startup
  • Cleaned up unused imports related to table creation (ConnectionTrait, DbErr, Schema, TransactionTrait, and the tasks model)

@benjamin-747 benjamin-747 added this pull request to the merge queue Oct 27, 2025
Merged via the queue into gitmono-dev:main with commit f8e1248 Oct 27, 2025
6 checks passed
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.

3 participants