Skip to content

No admin after upgrade? #162

Answered by kelvinburke
kelvinburke asked this question in Q&A
Discussion options

You must be logged in to vote

I believe my user did somehow lose admin status in the upgrade, here are the steps that I used to fix it:

cd in the backend server to the location of the docker volume provided to the backend container. In my case this was:
volumes: - kitchenowl_data:/data
So I found the kitchenowl_data directory

Find the database.db
Optionally create a backup cp database.db database.db.bak

Use sqlite3 to edit the database:
sqlite3 database.db

(optionally) PRAGMA table_info(user); to see the column names of the user table

SELECT * FROM user;
Identify your user you want to make admin (name is the 1st column after ID), then
UPDATE user SET admin=1 WHERE name IS "Kelvin";
and replace Kelvin with whatever nam…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TomBursch
Comment options

Answer selected by kelvinburke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants