mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-16 12:27:41 +00:00
Make sure the pamMode is push for host resources
This commit is contained in:
@@ -247,6 +247,13 @@ export default async function migration() {
|
||||
ALTER TABLE 'siteResources' ADD COLUMN 'pamMode' text DEFAULT 'passthrough';
|
||||
`
|
||||
).run();
|
||||
db.prepare(
|
||||
`
|
||||
UPDATE 'siteResources'
|
||||
SET "pamMode" = 'push'
|
||||
WHERE LOWER(COALESCE("mode", '')) = 'host';
|
||||
`
|
||||
).run();
|
||||
db.prepare(
|
||||
`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user