File tree Expand file tree Collapse file tree
migrations/20260429_v1.2.0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11CREATE TYPE public .checksum_algorithm AS ENUM (
22 ' MD5' ,
3- ' SHA256'
3+ ' SHA256' ,
4+ ' SHA1'
45);
56
67ALTER TABLE public .location
Original file line number Diff line number Diff line change @@ -1921,7 +1921,7 @@ impl Location {
19211921 self . checksum . as_ref ( )
19221922 }
19231923
1924- #[ graphql( description = "Algorithm used to generate the checksum (MD5 or SHA-256 )" ) ]
1924+ #[ graphql( description = "Algorithm used to generate the checksum (MD5, SHA-256 or SHA-1 )" ) ]
19251925 pub fn checksum_algorithm ( & self ) -> Option < & ChecksumAlgorithm > {
19261926 self . checksum_algorithm . as_ref ( )
19271927 }
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ pub enum ChecksumAlgorithm {
6464 Md5 ,
6565 #[ cfg_attr( feature = "backend" , db_rename = "SHA256" ) ]
6666 Sha256 ,
67+ #[ cfg_attr( feature = "backend" , db_rename = "SHA1" ) ]
68+ Sha1 ,
6769}
6870
6971#[ cfg_attr( feature = "backend" , derive( diesel:: Queryable ) ) ]
You can’t perform that action at this time.
0 commit comments