mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-13 08:26:40 +00:00
Merge branch 'dev' into sticky_targets
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user