No admin after upgrade? #162
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe my user did somehow lose admin status in the upgrade, here are the steps that I used to fix it:
Find the Use (optionally)
Check the last column is now Restart the container for good measure |
Beta Was this translation helpful? Give feedback.
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
directoryFind 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 theuser
tableSELECT * 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…