Add default for target type

Fixes #3247
This commit is contained in:
Owen
2026-06-12 11:29:16 -07:00
parent 935593885a
commit a8ca28acb2

View File

@@ -349,10 +349,10 @@ export default async function migration() {
db.prepare(
`
UPDATE 'targets'
SET "mode" = (
SET "mode" = COALESCE((
SELECT "mode" FROM 'resources'
WHERE "resources"."resourceId" = "targets"."resourceId"
);
), 'http');
`
).run();
db.prepare(