Skip to content

Commit

Permalink
Do not default withdrawn to current time.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmcwhirter committed May 9, 2024
1 parent a8fb6b9 commit 974780a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions migration/src/m0000040_create_vulnerability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ impl MigrationTrait for Migration {
.col(ColumnDef::new(Vulnerability::Title).string())
.col(ColumnDef::new(Vulnerability::Published).timestamp_with_time_zone())
.col(ColumnDef::new(Vulnerability::Modified).timestamp_with_time_zone())
.col(
ColumnDef::new(Vulnerability::Withdrawn)
.timestamp_with_time_zone()
.default(Func::cust(Now)),
)
.col(ColumnDef::new(Vulnerability::Withdrawn).timestamp_with_time_zone())
.to_owned(),
)
.await
Expand Down

0 comments on commit 974780a

Please sign in to comment.