Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Fix some migration errors #2127

Merged
merged 2 commits into from
Nov 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/settings/toml/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,13 @@ impl Manifest {
name: self.name.clone(), // Inherited
kv_namespaces: get_namespaces(self.kv_namespaces.clone(), preview)?, // Not inherited
durable_objects: self.durable_objects.clone(), // Not inherited
migrations: self.migrations.as_ref().map(|migrations| Migrations::List {
script_tag: MigrationTag::Unknown,
migrations: migrations.clone(),
}), // Top Level
migrations: match (preview, &self.migrations) {
(false, Some(migrations)) => Some(Migrations::List {
script_tag: MigrationTag::Unknown,
migrations: migrations.clone(),
}),
_ => None,
}, // Top level
site: self.site.clone(), // Inherited
vars: self.vars.clone(), // Not inherited
text_blobs: self.text_blobs.clone(), // Inherited
Expand Down