bubble/db/setup-user.sql

10 lines
246 B
SQL

-- TODO: IDK wtf is wrong with this statement but im forgoing making this
-- work for the time being
$$
BEGIN
IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = 'bubble_admin') THEN
CREATE USER 'bubble_admin' WITH PASSWORD $1;
END IF
END
$$