Skip to content

Commit 2f20614

Browse files
committed
add new fields
1 parent b10401b commit 2f20614

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

src/metadata.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,17 @@ CREATE TABLE packages (
6262
download_count INTEGER,
6363
download_count_week INTEGER,
6464
download_count_month INTEGER,
65+
bundle BOOLEAN NOT NULL DEFAULT false,
66+
bundle_type TEXT,
67+
soar_syms BOOLEAN NOT NULL DEFAULT false,
68+
deprecated BOOLEAN NOT NULL DEFAULT false,
69+
desktop_integration BOOLEAN,
70+
external BOOLEAN,
71+
installable BOOLEAN,
72+
portable BOOLEAN,
73+
recurse_provides BOOLEAN,
74+
trusted BOOLEAN,
75+
version_latest TEXT,
76+
version_outdated BOOLEAN,
6577
UNIQUE (pkg_id, pkg_name, version)
6678
);

src/models.rs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,42 @@ pub struct RemotePackage {
197197
#[serde(default, deserialize_with = "optional_number")]
198198
pub download_count_week: Option<u64>,
199199

200+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
201+
pub bundle: Option<bool>,
202+
203+
#[serde(default, deserialize_with = "empty_is_none")]
204+
pub bundle_type: Option<String>,
205+
206+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
207+
pub soar_syms: Option<bool>,
208+
209+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
210+
pub deprecated: Option<bool>,
211+
212+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
213+
pub desktop_integration: Option<bool>,
214+
215+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
216+
pub external: Option<bool>,
217+
218+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
219+
pub installable: Option<bool>,
220+
221+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
222+
pub portable: Option<bool>,
223+
224+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
225+
pub recurse_provides: Option<bool>,
226+
227+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
228+
pub trusted: Option<bool>,
229+
230+
#[serde(default, deserialize_with = "empty_is_none")]
231+
pub version_latest: Option<String>,
232+
233+
#[serde(default, deserialize_with = "opt_boolean_from_string")]
234+
pub version_outdated: Option<bool>,
235+
200236
pub repology: Option<Vec<String>>,
201237
pub snapshots: Option<Vec<String>>,
202238
pub replaces: Option<Vec<String>>,

0 commit comments

Comments
 (0)