mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
[Bug]: Database migration (comments_total does not exit) #758
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @grenagit on GitHub (Jul 8, 2025).
Where is the problem occurring?
I encountered the problem while interacting with the server (Backend)
What browsers are you seeing the problem on?
Firefox
Current behavior
I successfully migrated a planka manually installed on a Debian server (v1.26.2 > v2.0.0-rc.3).
While trying to open an array containing data, I get stuck on loading.
In journalctl, I can read
Unexpected error from database adapter: column "comments_total" does not existDesired behavior
The migration 20250523131647_add_comments_counter.js does not seem to have taken place despite the execution of
npm run db:upgrade...In the database only the migration 20250228000022_version_2.js is done!
Steps to reproduce
Follow the steps in official documentation
Other information
No response
@meltyshev commented on GitHub (Jul 8, 2025):
Hi! The upgrade script only upgrades to the initial v2. However, we've since added more features and additional database migrations that need to be run. I believe the issue will be resolved if you run
npm run db:migrate.By the way, in the Docker setup we always run
db:initbefore starting PLANKA to ensure migrations are applied first (this is handled instart.sh).UPD: You're right - we missed that in the docs. We'll get them updated.