Skip to content

35 migrate to mysql#43

Merged
TwoLettuce merged 34 commits into
mainfrom
35-migrate-to-mysql
Jul 8, 2026
Merged

35 migrate to mysql#43
TwoLettuce merged 34 commits into
mainfrom
35-migrate-to-mysql

Conversation

@TwoLettuce

@TwoLettuce TwoLettuce commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Resolves #35 , Resolves #42
Moved away from the SQLite database used to store data and into the same MySQL server used by the autograder.

As far as I know, using a different "database" name will prevent conflicts with table names but I would appreciate fact checking on that one.

Also feel free to test this one out, I tried to test as much as I could for this since it's quite a big change, but I could have missed something. the new /setup command from my previous PR will make manual testing far easier.

Any suggestions to database schema/table definitions (found in db_manager.py) would also be appreciated so that future changes to the tables are minimal.

I included my work on #42 because an external database introduces greater latency, so some operations are beginning to take long enough to conflict with discord's response limitations

@TwoLettuce TwoLettuce linked an issue Jul 6, 2026 that may be closed by this pull request
@TwoLettuce TwoLettuce requested a review from a team July 6, 2026 21:36
@TwoLettuce TwoLettuce linked an issue Jul 8, 2026 that may be closed by this pull request

@mewilker mewilker 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.

You may want to implement the config table similar to how the autograder does if you forsee more configurable values in the future.

add rsa to support external database connections
@mewilker mewilker self-requested a review July 8, 2026 01:45
@TwoLettuce TwoLettuce merged commit 2b02f49 into main Jul 8, 2026
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.

Bot resilience Migrate to MySQL

2 participants