Skip to content

Commit

Permalink
Database schema migration to update notify_events Postgres function
Browse files Browse the repository at this point in the history
  • Loading branch information
slashdotdash committed Dec 5, 2019
1 parent 4c6e237 commit c933e54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/event_store/tasks/migrate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ defmodule EventStore.Tasks.Migrate do
@available_migrations [
"0.13.0",
"0.14.0",
"0.17.0"
"0.17.0",
"1.1.0"
]

@dialyzer {:no_return, exec: 2, handle_response: 1}
Expand Down
4 changes: 2 additions & 2 deletions priv/event_store/migrations/v1.1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ DO $$
BEGIN

CREATE OR REPLACE FUNCTION notify_events()
RETURNS trigger AS $$
RETURNS trigger AS $func$
DECLARE
channel text;
payload text;
Expand All @@ -22,7 +22,7 @@ BEGIN

RETURN NULL;
END;
$$ LANGUAGE plpgsql;
$func$ LANGUAGE plpgsql;

-- Record schema migration
INSERT INTO schema_migrations (major_version, minor_version, patch_version) VALUES (1, 1, 0);
Expand Down

0 comments on commit c933e54

Please sign in to comment.