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
+2 -2
View File
@@ -349,10 +349,10 @@ export default async function migration() {
db.prepare( db.prepare(
` `
UPDATE 'targets' UPDATE 'targets'
SET "mode" = ( SET "mode" = COALESCE((
SELECT "mode" FROM 'resources' SELECT "mode" FROM 'resources'
WHERE "resources"."resourceId" = "targets"."resourceId" WHERE "resources"."resourceId" = "targets"."resourceId"
); ), 'http');
` `
).run(); ).run();
db.prepare( db.prepare(