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

Fix tasks.swimlane_id foreign key for sqlite #4642

Merged
merged 2 commits into from Oct 26, 2020
Merged

Fix tasks.swimlane_id foreign key for sqlite #4642

merged 2 commits into from Oct 26, 2020

Conversation

bu4ak
Copy link
Contributor

@bu4ak bu4ak commented Oct 17, 2020

Closes #4635

Add reference tasks.swimlane_id -> swimlane.id for sqlite.
I found this is already implemented in mysql and postgres migrations.

date_started INTEGER,
time_spent NUMERIC DEFAULT 0,
time_estimated NUMERIC DEFAULT 0,
swimlane_id INTEGER REFERENCES swimlanes ON DELETE CASCADE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to make the foreign column explicit, for example: REFERENCES swimlanes(id) (same for projects and columns tables above).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@fguillot fguillot merged commit ae072d5 into kanboard:master Oct 26, 2020
@bu4ak bu4ak deleted the fix-tasks-swimlane-id-foreign-key branch October 28, 2020 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Task moved to inexistent swimlane when providing an incorrect swimlane_id
2 participants