Database model reconsideration #1157
Replies: 20 comments
-
|
lgtm |
Beta Was this translation helpful? Give feedback.
-
|
we should also probably rewrite so things are closer to sqlmodel conventions |
Beta Was this translation helpful? Give feedback.
-
|
changing the schemas drastically will require initial migration with an external migration script. a full schema overhaul would be a huge improvement for us though. I'm in favor of it, just keep the extra difficulty with the migration step in mind |
Beta Was this translation helpful? Give feedback.
-
yep, its definitely for the best though |
Beta Was this translation helpful? Give feedback.
-
|
100%, the changes would absolutely be worth the effort. clearing up some of the tech debt would be huge for future development |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
|
thoughts on this for guildconfig?
|
Beta Was this translation helpful? Give feedback.
-
|
for the migration script maybe on startup it checks for the "AFKModel" table, if it exists it sends a critical type error and tells you to run a specific python file after making a database backup |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
suggestions by other members
|
Beta Was this translation helpful? Give feedback.
-
|
StarboardData makes it seem more about data for the starboard then data for the message in the starboard. My idea is to call it StarredMessage, another idea was StarboardEntry and StarboardItem. What do you think? |
Beta Was this translation helpful? Give feedback.
-
|
id like to keep naming similar with Starboard so the other two may be better |
Beta Was this translation helpful? Give feedback.
-
|
Makes sense. |
Beta Was this translation helpful? Give feedback.
-
|
StarboardEntry gets my vote |
Beta Was this translation helpful? Give feedback.
-
|
agreed, renamed |
Beta Was this translation helpful? Give feedback.
-
set to plural to follow the already set standard and also seemingly the main standard, feel free to dispute using plural however |
Beta Was this translation helpful? Give feedback.
-
|
I actually disagree. in code the model would be StarboardEntries as an object referring to just one, single entry object. this feels sloppy and makes the object pretty confusing. we should standardize not doing that instead |
Beta Was this translation helpful? Give feedback.
-
|
I don't really see how? it's holding a lot of different starboarded messages |
Beta Was this translation helpful? Give feedback.
-
|
Would it be worth refactoring StarboardEntry to be for each message, and then it could be a table rather than a record? |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
The current database setup for Tux has accumulated some issues over the course of development, which we should consider looking over before fully rewriting the database logic.
Since the migration from Prisma is also likely going to be fairly involved and potentially coincide with migrating prod to local postgresql, it's also the ideal time to make large changes that could require an external migration script.
Issues of note:
All of these issues can be resolved without significant cog changes.
Beta Was this translation helpful? Give feedback.
All reactions