Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend): store the approver of a sequence #1516

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading