Merge branch 'dev' into sticky_targets

This commit is contained in:
Milo Schwartz 2025-04-21 22:28:18 -04:00 committed by GitHub
commit 38528ae8c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 586 additions and 9 deletions

View file

@ -11,11 +11,17 @@ export default async function migration() {
trx.run(
sql`ALTER TABLE resources ADD stickySession integer DEFAULT false NOT NULL;`
);
trx.run(
sql`ALTER TABLE 'resources' ADD 'tlsServerName' text;`
);
trx.run(
sql`ALTER TABLE 'resources' ADD 'setHostHeader' text;`
);
});
console.log(`Added new column: stickySession`);
console.log(`Migrated database schema`);
} catch (e) {
console.log("Unable to add new column: stickySession");
console.log("Unable to migrate database schema");
throw e;
}