-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error creating projects on the new version. #9
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I was testing the new code for sub-projects and sub-tasks and came across a weird error everytime I tried to create a new project.
The bug:
With some basic investigation I found out what was happening, once you added the new column
ParentProjectId
to the code, our SQLite instance had a schema change that wasn't migrated, so my current~/.local/share/clido/data.db
contained the old version of that database.Solution:
As a solution to this, I have two things in mind.
Create a versioning system to the DB and a migration system, so everytime we update the schema, we include that migration on the commit, and whenever a user executes any command on a new version, the tool runs that migration before executing the command itself, fixing any schema mismatches in the process.
Include a
develop
branch to place the code we're still testing until we cover some use cases, then we merge to main once we hit a new minor version, (or a patch if it's related to a bug)Implementation
I think I can hack a simple versioning system to the DB and open a PR still today, see you later.
The text was updated successfully, but these errors were encountered: