Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
enricocolasante committed Dec 11, 2024
1 parent 155f67d commit 3bfe9da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private long saveNote(@Nonnull Note note, @Nonnull UserDetails user) {
String sql =
"""
INSERT INTO public.note(noteid, notetext, creator, lastupdatedby, uid, created)
VALUES (nextVal('note_id_sequence'),
VALUES (nextVal('note_sequence'),
:text,
:creator,
(select userinfoid from userinfo where uid = :lastUpdatedBy),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
create sequence if not exists note_id_sequence;
select setval('note_id_sequence', coalesce((select max(noteid) from note), 1)) FROM note;
create sequence if not exists note_sequence;
select setval('note_sequence', coalesce((select max(noteid) from note), 1)) FROM note;

alter table if exists note drop column code;
alter table if exists note drop column lastupdated;

0 comments on commit 3bfe9da

Please sign in to comment.