Skip to content

Commit a065849

Browse files
committed
feat(webapp): create new projects on the v2 engine
The engine column still defaults to V1 for historical rows, so a brand-new project was transiently V1 until its first worker registration or deploy upgraded it, and any trigger in that window hit the v3 upgrade error. New projects are V2 up front. The V1 to V2 upgrade guards for existing legacy projects are untouched.
1 parent ac436e5 commit a065849

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/webapp/app/models/project.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export async function createProject(
101101
},
102102
externalRef: `proj_${externalRefGenerator()}`,
103103
version: version === "v3" ? "V3" : "V2",
104+
// New projects run on the v2 engine. The Prisma column still defaults to V1
105+
// for historical rows; the V1->V2 upgrade guards on worker-register / deploy
106+
// stay in place to migrate existing legacy projects.
107+
engine: "V2",
104108
onboardingData,
105109
},
106110
include: {

0 commit comments

Comments
 (0)