diff --git a/backend/src/db/model.rs b/backend/src/db/model.rs index 2e8cf1ede..950c6505a 100644 --- a/backend/src/db/model.rs +++ b/backend/src/db/model.rs @@ -80,7 +80,7 @@ impl Database { .map(|x| format!("{x:X}")) .join(":"), system_start_time: Utc::now().to_rfc3339(), - zram: false, + zram: true, }, package_data: AllPackageData::default(), ui: serde_json::from_str(include_str!("../../../frontend/patchdb-ui-seed.json")) diff --git a/backend/src/version/v0_3_5.rs b/backend/src/version/v0_3_5.rs index bf48ac02c..6613fb888 100644 --- a/backend/src/version/v0_3_5.rs +++ b/backend/src/version/v0_3_5.rs @@ -62,6 +62,7 @@ impl VersionT for Version { } } db.mutate(|v| { + v.as_server_info_mut().as_zram_mut().ser(&true)?; for (_, pde) in v.as_package_data_mut().as_entries_mut()? { for (dependency, info) in pde .as_installed_mut()