-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: migration files for the database schema #33
feat: migration files for the database schema #33
Conversation
Unused dependencies (4)
Unused devDependencies (4)
Unlisted dependencies (9)
Unlisted binaries (5)
|
Every plugin will have its own DB and the kernel just calls plugins so it doesn't need any DB |
@whilefoo Understood, then what will happen with the current db, plain delete? |
The only useful data from the current database isn't really even worth migrating. It's just the wallet data. Instead we can just force everybody to re-register. However we may also need to figure some type of standardized way to bus data from plugins to other plugins. For example: Wallet registration plugin Permit generation requires wallet data. Technically we could make it the same plugin with two different intended entry points though. One for the slash command (comment created event) and then one to generate permits (invoked as part of a chain of other plugins, originally from issue closed as complete) This might be the easiest way forward in the short term. In the longer term we can probably take inspiration from how Amazon web services was formed. Basically leadership forced the team to build internal systems with standardized modules and interfaces. Then they made those interfaces public. |
This PR corresponds to 2 bot plugins:
I don't want to close this PR without merging since these DB migrations will eventually end up in plugins' DB instances. I think the best thing we can do right now is to merge this PR into the old bot's instance at https://github.com/ubiquity/ubiquibot |
I am fine with that, I will move the PR to the other repository. |
Pull request moved to ubiquity/ubiquibot#923 |
Resolves ubiquity/ubiquibot#919
It is done in this repository as the issue was opened in the old Ubiquibot repo which should not be relevant soon. The schema is a copy of the one currently used by
wfzpewmlyiozupulbuur
Supabase project.The changes are already applied in the database, these migrations just reflect its current state.