Skip to content
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

Add database schema #27

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Add database schema #27

merged 2 commits into from
Apr 23, 2024

Conversation

jmaupetit
Copy link
Member

@jmaupetit jmaupetit commented Apr 12, 2024

Purpose

Now that the API can receive static and dynamic data, we need to save them!

Proposal

  • fix Static.id_pdc_itinerance (should be required)
  • add static schema database models
  • make all database models timestamped (add created_at, updated_at field)
  • add database migration
  • run database migrations in the CI
  • run database migrations in staging
  • install / enable postgis extension in development
  • install / enable postgis extension in the CI
  • enable postgis extension in staging environment
  • update the CHANGELOG
  • improve Localisation.coordonneesXY de/serialization

@jmaupetit jmaupetit self-assigned this Apr 12, 2024
@jmaupetit jmaupetit marked this pull request as ready for review April 23, 2024 15:53
This is the first draft implementation for static data persistency.

Note that we use Postgis extension for stations geolocalization.
@jmaupetit jmaupetit merged commit c9880c9 into main Apr 23, 2024
8 checks passed
@jmaupetit jmaupetit deleted the add-db-schema branch April 23, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant