Skip to content
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

Database setup improvements #381

Open
BCurbs opened this issue Aug 12, 2022 · 0 comments
Open

Database setup improvements #381

BCurbs opened this issue Aug 12, 2022 · 0 comments

Comments

@BCurbs
Copy link
Contributor

BCurbs commented Aug 12, 2022

With the current database initial_create and initial_migrate, it might be better to make it so when you create a database table, it is created using the initial_create sql in the table, but at the current max version of that database table. Then if there is an update that changes the database, and the bot is installed, it simply creates the tables correctly, without immediately modifying them. Then if the database version is incorrect for bots that already exist, the migration is run. It seems like that is more straightforward than keeping a database table creation that is never needed.

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

No branches or pull requests

1 participant