Skip to content

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

Closed
@pglombardo

Description

@pglombardo

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions