fix(sql): move EXAMPLE_1 database creation to end of schema file - #3183
fix(sql): move EXAMPLE_1 database creation to end of schema file#3183mumubuku wants to merge 1 commit into
Conversation
…phoros-ai#3115) The EXAMPLE_1 database creation and users table were placed in the middle of dbgpt.sql, causing subsequent tables (connector_instance, dbgpt_serve_scheduled_task, dbgpt_serve_scheduled_run) to be created in the EXAMPLE_1 database instead of the dbgpt database. Move the EXAMPLE_1 section to the end of the file so all dbgpt tables are created in the correct database context.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📜 Recent review details🔇 Additional comments (1)
📝 Walkthrough
WalkthroughThe schema moves the ChangesSchema initialization
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Fix #3115
Problem
In \�ssets/schema/dbgpt.sql, the \CREATE DATABASE EXAMPLE_1; use EXAMPLE_1;\ statements were placed in the middle of the file (line 584), causing subsequent tables (\connector_instance, \dbgpt_serve_scheduled_task, \dbgpt_serve_scheduled_run) to be created in the \EXAMPLE_1\ database instead of the \dbgpt\ database, leading to startup failures.
Solution
Move the \EXAMPLE_1\ database creation and \users\ table SQL to the end of the file, ensuring all \dbgpt\ database tables are created in the correct database context.
Verification