[PR #2531] [MERGED] fix(project): remove non-existent columns from UpdateProject column list #5707

Closed
opened 2026-04-16 13:49:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2531
Author: @tink-bot
Created: 4/2/2026
Status: Merged
Merged: 4/3/2026
Merged by: @kolaente

Base: mainHead: fix-project-archive-errors


📝 Commits (1)

  • 05a49aa fix(project): remove non-existent columns from UpdateProject column list

📊 Changes

2 files changed (+6 additions, -2 deletions)

View changed files

📝 pkg/models/project.go (+0 -2)
📝 pkg/webtests/archived_test.go (+6 -0)

📄 Description

The UpdateProject function included done_bucket_id and default_bucket_id in its column update list, but these columns belong to the project_views table, not projects. This caused SQL errors when archiving or updating a project on MySQL/PostgreSQL.

Fixes #2459


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2531 **Author:** [@tink-bot](https://github.com/tink-bot) **Created:** 4/2/2026 **Status:** ✅ Merged **Merged:** 4/3/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix-project-archive-errors` --- ### 📝 Commits (1) - [`05a49aa`](https://github.com/go-vikunja/vikunja/commit/05a49aa70de6e146978487f739b1a958312a7274) fix(project): remove non-existent columns from UpdateProject column list ### 📊 Changes **2 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `pkg/models/project.go` (+0 -2) 📝 `pkg/webtests/archived_test.go` (+6 -0) </details> ### 📄 Description The `UpdateProject` function included `done_bucket_id` and `default_bucket_id` in its column update list, but these columns belong to the `project_views` table, not `projects`. This caused SQL errors when archiving or updating a project on MySQL/PostgreSQL. Fixes #2459 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:49:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5707