Skip to content
Snippets Groups Projects
Commit d38e8612 authored by João Victor Tozatti Risso's avatar João Victor Tozatti Risso
Browse files

Migrate API to v2 database schema

Change SQL queries in the following routes:

* city
* state
* region
* school
* enrollment

Also, change tests to reflect the new schema where appropriate. Specially in the case of cities, the primary key now becomes pk_cod_ibge (city IBGE code) and, therefore, any query that relies on the city id should use this value instead of the old primary key.

Aliases of fields that have different names were added to ensure compatibility with the UI of LDE.

Please refer to the database repository in order to understand how the current schema works. The corresponding ER diagram can be located there.
parent c358f2dc
No related branches found
No related tags found
3 merge requests!116Release v1.0.0,!27Implement UC201 - Select Location,!26WIP: Change API queries to the v2 database schema
Pipeline #
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment