We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bc3536 commit 34daad9Copy full SHA for 34daad9
1 file changed
apps/web/src/services/storage/migrations/runner.ts
@@ -117,15 +117,19 @@ function checkProjectVersion({ project }: { project: unknown }): number {
117
}
118
119
const versionValue = project.version;
120
+
121
+ // v2 and up
122
if (typeof versionValue === "number") {
123
return versionValue;
124
125
126
+ // v1 (got scenes)
127
const scenesValue = project.scenes;
128
if (Array.isArray(scenesValue) && scenesValue.length > 0) {
129
return 1;
130
131
132
+ // v0 (didn't have scenes)
133
return 0;
134
135
0 commit comments