Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
FROM
users
WHERE
- deleted IS FALSE
+ deleted_at IS NULL
ORDER BY
name
""",
FROM
users
WHERE
- deleted IS FALSE
+ deleted_at IS NULL
""",
)
FROM
users
WHERE
- deleted IS FALSE
+ deleted_at IS NULL
AND
name = %s
""", name,
FROM
users
WHERE
- deleted IS FALSE
+ deleted_at IS NULL
AND
name = ANY(%s)
""", [row.get("uid")[0].decode() for row in res],
CREATE TABLE public.users (
id integer NOT NULL,
name text NOT NULL,
- deleted boolean DEFAULT false NOT NULL,
+ deleted_at timestamp without time zone,
registered_at timestamp without time zone DEFAULT now() NOT NULL,
admin boolean DEFAULT false NOT NULL,
quota bigint,