()
| 42 | } |
| 43 | |
| 44 | function ensureGlobal() { |
| 45 | return Database.Service.use(({ db }) => |
| 46 | db |
| 47 | .insert(ProjectTable) |
| 48 | .values({ |
| 49 | id: ProjectV2.ID.global, |
| 50 | worktree: AbsolutePath.make("/"), |
| 51 | time_created: Date.now(), |
| 52 | time_updated: Date.now(), |
| 53 | sandboxes: [], |
| 54 | }) |
| 55 | .onConflictDoNothing() |
| 56 | .run() |
| 57 | .pipe(Effect.orDie), |
| 58 | ) |
| 59 | } |
| 60 | |
| 61 | describe("migrateFromGlobal", () => { |
| 62 | it.live("migrates global sessions on first project creation", () => |
no test coverage detected