diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-02-01 16:44:07 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-02-01 16:44:07 +0100 |
| commit | ee7eaecc9f2125ac821e9d19bb345c1738ee9a54 (patch) | |
| tree | f626629e6d2cbe14be5fe5a486cd6d8870c91c9e /apps/web/src/services/storage/migrations/v0-to-v1.ts | |
| parent | 8ea3db833f166f41e240505724a2f9689c236196 (diff) | |
| download | opencut-ee7eaecc9f2125ac821e9d19bb345c1738ee9a54.tar.gz | |
add comments
Diffstat (limited to 'apps/web/src/services/storage/migrations/v0-to-v1.ts')
| -rw-r--r-- | apps/web/src/services/storage/migrations/v0-to-v1.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/web/src/services/storage/migrations/v0-to-v1.ts b/apps/web/src/services/storage/migrations/v0-to-v1.ts index 7ec388f1..4997f3fa 100644 --- a/apps/web/src/services/storage/migrations/v0-to-v1.ts +++ b/apps/web/src/services/storage/migrations/v0-to-v1.ts @@ -1,3 +1,9 @@ +/* + * Ensures every project has at least one scene + * Adds a default "Main scene" if none exist + * Sets currentSceneId to the new scene's id + */ + import { IndexedDBAdapter } from "@/services/storage/indexeddb-adapter"; import type { SerializedScene } from "@/services/storage/types"; import { buildDefaultScene } from "@/lib/scenes"; |
