pyronear / pyro-api

Alert Management API for wildfire prevention, detection & monitoring. Built with FastAPI & PostgreSQL
Apache License 2.0
21 stars 9 forks source link

chore: alembic script to create notifications and recipients tables #309

Open blenzi opened 9 months ago

blenzi commented 9 months ago

This PR adds an alembic script to create notifications and recipients tables. The db in dev already contains those, while in prod it is not the case. So the migration is supposed not to overwrite the existing tables.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0ffbf38) 94.95% compared to head (8a955c0) 94.95%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #309 +/- ## ======================================= Coverage 94.95% 94.95% ======================================= Files 63 63 Lines 1505 1505 ======================================= Hits 1429 1429 Misses 76 76 ``` | [Flag](https://app.codecov.io/gh/pyronear/pyro-api/pull/309/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/pyronear/pyro-api/pull/309/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear) | `94.95% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.