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

Commit

Permalink
Don't include migrations in Target for preview uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
xortive committed Nov 9, 2021
1 parent 29b935b commit dfa7344
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/settings/toml/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use crate::settings::toml::route::RouteConfig;
use crate::settings::toml::site::Site;
use crate::settings::toml::target_type::TargetType;
use crate::settings::toml::triggers::Triggers;
use crate::settings::toml::Target;
use crate::settings::toml::{Target, UploadFormat};
use crate::terminal::{
emoji,
message::{Message, StdOut},
Expand Down 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

0 comments on commit dfa7344

Please sign in to comment.