Skip to content

Commit

Permalink
Track when F-list files were discovered.
Browse files Browse the repository at this point in the history
  • Loading branch information
Syfaro committed Mar 1, 2024
1 parent 7bf1bcb commit e1be16f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrations/20240301011157_flist_discovery_time.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE
flist_file DROP COLUMN discovered_at;
11 changes: 11 additions & 0 deletions migrations/20240301011157_flist_discovery_time.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ALTER TABLE
flist_file
ADD
COLUMN discovered_at timestamp with time zone;

ALTER TABLE
flist_file
ALTER COLUMN
discovered_at
SET
DEFAULT current_timestamp;
12 changes: 12 additions & 0 deletions sqlx-data.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,7 @@ pub struct FListFile {
pub size: Option<i32>,
pub sha256: Option<Vec<u8>>,
pub perceptual_hash: Option<i64>,
pub discovered_at: Option<chrono::DateTime<chrono::Utc>>,
}

impl FListFile {
Expand Down

0 comments on commit e1be16f

Please sign in to comment.