diff --git a/src/main/resources/sql/functions/comment/comment.sql b/src/main/resources/sql/functions/comment/comment.sql index 1d8c537..7288577 100644 --- a/src/main/resources/sql/functions/comment/comment.sql +++ b/src/main/resources/sql/functions/comment/comment.sql @@ -15,7 +15,7 @@ begin insert into comment_on_constitution (id, created_by_id, target_id, content, parent_comment_id) values (_new_id, _created_by_id, _target_id, _content, _parent_comment_id); else - raise exception 'comment with target as "%", is no implemented', reference::text; + raise exception 'comment with target as "%", is not implemented', reference::text; end if; _id = _new_id; end; diff --git a/src/main/resources/sql/functions/follow/follow.sql b/src/main/resources/sql/functions/follow/follow.sql index e415103..5f845d1 100644 --- a/src/main/resources/sql/functions/follow/follow.sql +++ b/src/main/resources/sql/functions/follow/follow.sql @@ -15,7 +15,7 @@ begin values (_created_by_id, _target_id) on conflict (created_by_id, target_id) do nothing; else - raise exception '% no implemented', reference::text; + raise exception '% no implemented for follow', reference::text; end if; end; $$; diff --git a/src/main/resources/sql/functions/vote/vote.sql b/src/main/resources/sql/functions/vote/vote.sql index 11abe20..d0324bf 100644 --- a/src/main/resources/sql/functions/vote/vote.sql +++ b/src/main/resources/sql/functions/vote/vote.sql @@ -31,7 +31,7 @@ begin anonymous = excluded.anonymous, updated_at = now(); else - raise exception '% no implemented', reference::text; + raise exception '% no implemented for vote', reference::text; end if; select count_vote(reference, _target_id) into resource; diff --git a/src/main/resources/sql/migrations/0000-init_schema.up.sql b/src/main/resources/sql/migrations/0000-init_schema.up.sql index 47acc8d..e6363b4 100644 --- a/src/main/resources/sql/migrations/0000-init_schema.up.sql +++ b/src/main/resources/sql/migrations/0000-init_schema.up.sql @@ -77,7 +77,7 @@ begin order by version_number desc limit 1; else - raise exception '% is not implemented', tablename::text; + raise exception '% is not implemented for function "generate_version_number"', tablename::text; end if; if not found then @@ -103,7 +103,7 @@ begin where c.version_id = _version_id and c.last_version = true; else - raise exception '% is not implemented', tablename::text; + raise exception '% is not implemented for function "set_all_version_to_old"', tablename::text; end if; end; $$; @@ -145,7 +145,7 @@ begin where c1.version_id = _version_id and c1.id = c3.id; else - raise exception '% is not implemented', tablename::text; + raise exception '% is not implemented for function "set_correct_last_version"', tablename::text; end if; end; $$;