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

Docs: How to set Admin flag via DB access #2405

Open
pglombardo opened this issue Aug 9, 2024 · 0 comments
Open

Docs: How to set Admin flag via DB access #2405

pglombardo opened this issue Aug 9, 2024 · 0 comments

Comments

@pglombardo
Copy link
Owner

You can directly access the database and set the admin field to true.

UPDATE users
SET admin = 1
WHERE email = '[email protected]';

Just be careful. Make sure only the accounts you want are marked as admin:

select email from users where admin = 1;

admin is a boolean column - you might have to use true instead depending on the DB type you are using.

Originally posted by @pglombardo in #2404 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant