ConservationMetrics / map-packer

A Nuxt app to allow users to generate and manage offline map requests to mapgl-tile-renderer
MIT License
3 stars 0 forks source link

Create offline map request database table if it does not exist #14

Closed rudokemper closed 2 months ago

rudokemper commented 2 months ago

Goal

Closes #13.

What I changed

This PR introduces a function createMapRequestTable to create an offline map request table with the expected schema, and calls this function in the fetchData and insertDataIntoTable functions if it is found that the database does not exist. This guarantees that the application instantiates a db table when either the MapDashboard or the GenerateMap view is accessed.