mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 02:41:35 +01:00
Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
-- migrate:up
|
||||
CREATE FUNCTION pgrst_watch() RETURNS event_trigger AS $$
|
||||
BEGIN
|
||||
NOTIFY pgrst, 'reload schema';
|
||||
END;
|
||||
$$ LANGUAGE plpgsql;
|
||||
|
||||
CREATE EVENT TRIGGER pgrst_watch
|
||||
ON ddl_command_end
|
||||
EXECUTE FUNCTION pgrst_watch();
|
||||
|
||||
-- migrate:down
|
||||
DROP EVENT TRIGGER pgrst_watch;
|
||||
DROP FUNCTION pgrst_watch();
|
||||
Reference in New Issue
Block a user