mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-14 14:54:49 +02:00
Make sure the pamMode is push for host resources
This commit is contained in:
@@ -197,6 +197,11 @@ export default async function migration() {
|
|||||||
await db.execute(
|
await db.execute(
|
||||||
sql`ALTER TABLE "siteResources" ADD COLUMN "pamMode" varchar(32) DEFAULT 'passthrough';`
|
sql`ALTER TABLE "siteResources" ADD COLUMN "pamMode" varchar(32) DEFAULT 'passthrough';`
|
||||||
);
|
);
|
||||||
|
await db.execute(sql`
|
||||||
|
UPDATE "siteResources"
|
||||||
|
SET "pamMode" = 'push'
|
||||||
|
WHERE LOWER(COALESCE("mode", '')) = 'host';
|
||||||
|
`);
|
||||||
await db.execute(
|
await db.execute(
|
||||||
sql`ALTER TABLE "sites" ADD COLUMN "autoUpdateEnabled" boolean DEFAULT false NOT NULL;`
|
sql`ALTER TABLE "sites" ADD COLUMN "autoUpdateEnabled" boolean DEFAULT false NOT NULL;`
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -247,6 +247,13 @@ export default async function migration() {
|
|||||||
ALTER TABLE 'siteResources' ADD COLUMN 'pamMode' text DEFAULT 'passthrough';
|
ALTER TABLE 'siteResources' ADD COLUMN 'pamMode' text DEFAULT 'passthrough';
|
||||||
`
|
`
|
||||||
).run();
|
).run();
|
||||||
|
db.prepare(
|
||||||
|
`
|
||||||
|
UPDATE 'siteResources'
|
||||||
|
SET "pamMode" = 'push'
|
||||||
|
WHERE LOWER(COALESCE("mode", '')) = 'host';
|
||||||
|
`
|
||||||
|
).run();
|
||||||
db.prepare(
|
db.prepare(
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user