@@ -38,6 +38,7 @@ pub(crate) fn add_package_into_database(
38
38
has_examples : bool ,
39
39
compression_algorithms : std:: collections:: HashSet < CompressionAlgorithm > ,
40
40
repository_id : Option < i32 > ,
41
+ archive_storage : bool ,
41
42
) -> Result < i32 > {
42
43
debug ! ( "Adding package into database" ) ;
43
44
let crate_id = initialize_package_in_database ( conn, metadata_pkg) ?;
@@ -56,12 +57,12 @@ pub(crate) fn add_package_into_database(
56
57
keywords, have_examples, downloads, files,
57
58
doc_targets, is_library, doc_rustc_version,
58
59
documentation_url, default_target, features,
59
- repository_id
60
+ repository_id, archive_storage
60
61
)
61
62
VALUES (
62
63
$1, $2, $3, $4, $5, $6, $7, $8, $9,
63
64
$10, $11, $12, $13, $14, $15, $16, $17, $18,
64
- $19, $20, $21, $22, $23, $24, $25, $26
65
+ $19, $20, $21, $22, $23, $24, $25, $26, $27
65
66
)
66
67
ON CONFLICT (crate_id, version) DO UPDATE
67
68
SET release_time = $3,
@@ -87,7 +88,8 @@ pub(crate) fn add_package_into_database(
87
88
documentation_url = $23,
88
89
default_target = $24,
89
90
features = $25,
90
- repository_id = $26
91
+ repository_id = $26,
92
+ archive_storage = $27
91
93
RETURNING id" ,
92
94
& [
93
95
& crate_id,
@@ -116,6 +118,7 @@ pub(crate) fn add_package_into_database(
116
118
& default_target,
117
119
& features,
118
120
& repository_id,
121
+ & archive_storage,
119
122
] ,
120
123
) ?;
121
124
0 commit comments