bubble/db/setup-user.sql

10 lines
246 B
MySQL
Raw Normal View History

2024-11-24 23:38:25 +00:00
-- TODO: IDK wtf is wrong with this statement but im forgoing making this
-- work for the time being
$$
2024-11-12 03:33:54 +00:00
BEGIN
2024-11-24 23:38:25 +00:00
IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = 'bubble_admin') THEN
CREATE USER 'bubble_admin' WITH PASSWORD $1;
END IF
2024-11-12 03:33:54 +00:00
END
2024-11-24 23:38:25 +00:00
$$