mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 00:02:23 +00:00
48e4ae6561
* feat: serve static websites * nit * sqlx * nit * nits * nits * nits * nits
12 lines
384 B
PL/PgSQL
12 lines
384 B
PL/PgSQL
ALTER TABLE http_trigger ADD COLUMN is_static_website BOOLEAN NOT NULL DEFAULT FALSE;
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION prevent_route_path_change()
|
|
RETURNS TRIGGER AS $$
|
|
BEGIN
|
|
IF CURRENT_USER = 'windmill_user' AND NEW.route_path <> OLD.route_path THEN
|
|
RAISE EXCEPTION 'Modification of route_path is only allowed by admins';
|
|
END IF;
|
|
RETURN NEW;
|
|
END;
|
|
$$ LANGUAGE plpgsql; |