mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
48e4ae6561
* feat: serve static websites * nit * sqlx * nit * nits * nits * nits * nits
11 lines
355 B
PL/PgSQL
11 lines
355 B
PL/PgSQL
ALTER TABLE http_trigger DROP COLUMN is_static_website;
|
|
|
|
CREATE OR REPLACE FUNCTION prevent_route_path_change()
|
|
RETURNS TRIGGER AS $$
|
|
BEGIN
|
|
IF CURRENT_USER <> 'windmill_admin' 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; |