Skip to content

Commit

Permalink
feat(backend): store the approver of a sequence (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoran-chen authored Mar 29, 2024
1 parent 75242d1 commit 80691ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ object SequenceEntriesTable : Table(SEQUENCE_ENTRIES_TABLE_NAME) {
val organismColumn = varchar("organism", 255)
val submissionIdColumn = varchar("submission_id", 255)
val submitterColumn = varchar("submitter", 255)
val approverColumn = varchar("approver", 255)
val groupNameColumn = varchar("group_name", 255)
val submittedAtColumn = datetime("submitted_at")
val releasedAtColumn = datetime("released_at").nullable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class SubmissionDatabaseService(
},
) {
it[releasedAtColumn] = now
it[approverColumn] = authenticatedUser.username
}
}

Expand Down
1 change: 1 addition & 0 deletions backend/src/main/resources/db/migration/V1__init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ create table sequence_entries (
organism text not null,
submission_id text not null,
submitter text not null,
approver text,
group_name text not null,
submitted_at timestamp not null,
released_at timestamp,
Expand Down

0 comments on commit 80691ea

Please sign in to comment.