Skip to content

Commit 620bb51

Browse files
committed
Remove format version from dump metadata.
1 parent cc8f22e commit 620bb51

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/tasks/dump_db.rs

-2
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,11 @@ impl DumpDirectory {
6565
struct Metadata<'a> {
6666
timestamp: &'a chrono::DateTime<chrono::Utc>,
6767
crates_io_commit: String,
68-
format_version: &'static str,
6968
}
7069
let metadata = Metadata {
7170
timestamp: &self.timestamp,
7271
crates_io_commit: dotenv::var("HEROKU_SLUG_COMMIT")
7372
.unwrap_or_else(|_| "unknown".to_owned()),
74-
format_version: "0.1",
7573
};
7674
let file = File::create(self.export_dir.join("metadata.json"))?;
7775
serde_json::to_writer_pretty(file, &metadata)?;

src/tasks/dump_db/readme_for_tarball.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ This is a dump of the public information in the crates.io database.
44

55
## Files
66

7-
* `data/` – the CSV files with the actual dump data.
7+
* `data/` – the CSV files with the actual data.
88
* `export.sql` – the `psql` script that was used to create this database dump. It is only included in the archive for reference.
99
* `import.sql` – a `psql` script that can be used to restore the dump into a PostgreSQL database with the same schema as the `crates.io` database, destroying all current data.
1010
* `metadata.json` – some metadata of this dump.
11+
* `schema.sql` – a dump of the database schema to facilitate generating a new database from the data.
1112

1213
## Metadata Fields
1314

1415
* `timestamp` – the UTC time the dump was started.
1516
* `crates_io_commit` – the git commit hash of the deployed version of crates.io that created this dump.
16-
* `format_version` – the version of the layout and format of this dump. Roughly follows SemVer conventions.
1717

1818
## Restoring to a Local crates.io Database
1919

0 commit comments

Comments
 (0)