You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description of Changes
Adds a warning prompt for 1.0 -> 2.0 module upgrade path.
# API and ABI breaking changes
None
# Expected complexity level and risk
1
# Testing
This patch checks a wasm module binary compiled with pre-2.0 bindings
into source control. A smoketest was added that first publishes the the
pre-compiled module and then publishes a new module using the 2.0
bindings in its place.
"It looks like you're trying to do a major version upgrade from 1.0 to 2.0. We recommend first looking at the upgrade notes before committing to this upgrade: https://spacetimedb.com/docs/upgrade"
140
+
);
141
+
println!();
142
+
println!("WARNING: Once you publish you cannot revert back to version 1.0.");
143
+
println!();
144
+
145
+
letmut input = String::new();
146
+
print!("Please type 'upgrade' to accept this change: ");
147
+
letmut stdout = std::io::stdout();
148
+
std::io::Write::flush(&mut stdout)?;
149
+
std::io::stdin().read_line(&mut input)?;
150
+
151
+
if input.trim() == "upgrade"{
152
+
returnOk(());
153
+
}
154
+
155
+
anyhow::bail!("Aborting because major version upgrade was not accepted.");
Copy file name to clipboardExpand all lines: docs/docs/00200-core-concepts/00100-databases.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,7 @@ See [`spacetime publish`](/databases/building-publishing) for details on the pub
95
95
96
96
When you republish to an existing database, SpacetimeDB attempts to automatically migrate the schema. For details on what changes are supported and migration strategies:
97
97
98
+
-[1.x to 2.0 Upgrade Notes](/upgrade) - Required reading before major-version upgrades.
98
99
-[Automatic Migrations](/databases/automatic-migrations) - Learn which schema changes are safe, breaking, or forbidden.
99
100
-[Incremental Migrations](/databases/incremental-migrations) - Advanced pattern for complex schema changes.
0 commit comments