mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-25 05:25:39 +02:00
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user