-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrmMigrationAndLogger #1988
OrmMigrationAndLogger #1988
Conversation
1f7a92b
to
8cae51a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding usage of "our" configu module. Perhaps we can reconsider usage of the "native" one instead. That should be done separately though.
9753e54
to
4598fe2
Compare
- Adds a database migration to initialize the tables for each entity. - Adds a `TargetedMessagingDatasource` containing methods to interact with `Outreaches`, `Targeted Safes`, and `Submissions`.
4598fe2
to
f7da627
Compare
… reverts v1 migration configuration
ca5cd18
to
2ea0e5d
Compare
Done 2ea0e5d
Since these are TypeOrm parameters I didn't add comments. Do you want me to add TypeOrm reference?
Done 2ea0e5d
I added the initialize call for the sake of consistency. |
- Introduces a new query logger to TypeORM. - Ensures TypeORM migrations run after locking the database during startup.
- Introduces a new query logger to TypeORM. - Ensures TypeORM migrations run after locking the database during startup.
Summary
Introduces a locking mechanism to TypeORM migrations to prevent conflicts when multiple instances attempt to run the same migration simultaneously.
Adds a custom query logger that logs queries to the console without including bound parameters.
Changes