You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sessions: when launching the application, Foal makes a request to the database to create the session table if it does not exist.
This has two drawbacks:
This may make too many undesirable requests to the db in a severless environment.
The database schema is updated at runtime outside the classical migration process. This practice can be dangerous and it does not allow to keep a traceability of the modifications of the database schema unlike migrations (revert, etc).
Solution
Use migrations to generate the session table. They can be generated automatically from an entity DatabaseSession exported from @foal/typeorm.
The text was updated successfully, but these errors were encountered:
Issue
Sessions: when launching the application, Foal makes a request to the database to create the session table if it does not exist.
This has two drawbacks:
Solution
Use migrations to generate the session table. They can be generated automatically from an entity
DatabaseSession
exported from@foal/typeorm
.The text was updated successfully, but these errors were encountered: