feat: create table if missing
This commit is contained in:
@@ -48,6 +48,7 @@ app.use(
|
|||||||
store: new PgSession({
|
store: new PgSession({
|
||||||
pool: pool,
|
pool: pool,
|
||||||
tableName: 'session',
|
tableName: 'session',
|
||||||
|
createTableIfMissing: true,
|
||||||
}),
|
}),
|
||||||
secret: 'mx-session',
|
secret: 'mx-session',
|
||||||
resave: false, // Do not resave the session if it hasn't changed
|
resave: false, // Do not resave the session if it hasn't changed
|
||||||
|
|||||||
Reference in New Issue
Block a user