Commit graph

32 commits

Author SHA1 Message Date
Yohan Boniface
453056cb15 feat: remove Map.description
The field was not populated since years, and we already have the
info inside the JSONB `settings`.
2024-04-24 16:39:59 +02:00
Yohan Boniface
d743ffeea0 fix: increase TileLayer.url_template size
fix #255
2024-04-17 11:19:31 +02:00
Alexis Métaireau
1b41ff0ddc chore: Rename datalayer id to old_id 2024-03-05 11:23:12 +01:00
Alexis Métaireau
f82897f202 chore: make the datalayer uuid migration reversible 2024-02-26 23:33:33 +01:00
Alexis Métaireau
9648c8ba42 chore: migrate existing local remoteURL datalayers 2024-02-26 21:00:51 +01:00
Alexis Métaireau
51889f3238 chore: fetch datalayer index name before dropping it.
This can be helpful in situations where the name of the index is not known, as it can be with pre 1.0 deployed instance.

This commit also generates the UUIDs directly using an SQL statement.
2024-02-26 15:01:19 +01:00
Alexis Métaireau
99d7b8a6e1 chore: ruff format 2024-02-26 15:01:19 +01:00
Alexis Métaireau
f869d77f2c chore: update migrations 2024-02-26 15:01:19 +01:00
Alexis Métaireau
1415f96c6f chore: fix tests 2024-02-26 15:01:19 +01:00
Alexis Métaireau
6b7efda37a chore: replace datalayer ids with uuids 2024-02-26 15:01:19 +01:00
Yohan Boniface
a99ee90e15 chore: migrate to OAuth 2 for OpenStreetMap backend
fix #1279
2024-02-14 11:30:16 +01:00
Alexis Métaireau
aff0181636 [style] Format the code 2023-11-24 23:31:18 +01:00
Yohan Boniface
8c774fb7b3 Add Pictogram.category and list pictos grouped by category 2023-10-30 21:07:55 +01:00
Yohan Boniface
b6aa201397 Use FileField instead of ImageField for pictogram to allow SVG 2023-10-30 12:45:05 +01:00
Yohan Boniface
495dd6444f Finally add Map.create_at field
This field should have been added at the beginning, but this is
like planting trees, isn't it ?
2023-09-27 11:01:50 +02:00
Yohan Boniface
6ba8166f86 Reset DataLayer.edit_status migration 2023-09-22 17:32:19 +02:00
Yohan Boniface
3dc4efe7b1 Remove data migration for edit_status 2023-09-22 17:32:19 +02:00
Yohan Boniface
2d1d9281d9 Add SQL migration to populate DataLayer.edit_status from Map.edit_status 2023-09-22 17:30:08 +02:00
Yohan Boniface
89ab029cab WIP: move edit_status from Map to DataLayer 2023-09-22 17:25:55 +02:00
Yohan Boniface
fa090b89df Store DataLayer's settings in DB
This allows to known the full datalayer behaviour without needing
to load all the data, including the zoom from and to (new settings),
but also the color for example.

This will help also understanding datalayers usage and making
stats.

But no data migration is provided, it's retrocompatible (data
migration in OSM FR servers would be huge, so let's see if it's
really needed).
2023-08-20 09:48:01 +02:00
Yohan Boniface
0c3dc02fc1 Allow to configure default share and edit status
fix #1244
2023-08-07 08:16:49 +02:00
Yohan Boniface
a0654776f6 Add migrations for models label changes 2023-07-20 11:54:45 +02:00
Yohan Boniface
37b4d05da5 (WIP) Allow to star map and retrieve starred maps 2023-05-15 12:22:26 +02:00
Yohan Boniface
9fad415c9f Add missing migration 2023-02-27 13:51:33 +01:00
Yohan Boniface
8972505f1b Add missing migration for Map.share_status update 2019-04-16 20:30:42 +02:00
Yohan Boniface
7e38a08fb8 Switch from DictField to JSONField 2019-04-07 10:40:30 +02:00
Yohan Boniface
72b943d779 Remove Map.tilelayer foreignkey
Map tilelayer is saved in the settings since a long time now.
2018-07-14 13:59:40 +02:00
Yohan Boniface
705d0cbb73 Add back TileLayer and Licence creation migration
Lost during merge with django-leaflet-storage
2018-07-07 14:42:25 +02:00
Yohan Boniface
65e939c4ee Reset migrations
There are two files:
- the initial one that create everyting, but TileLayer.tms
- one for TileLayer.tms, because it was not released so people
  upgrading will need to fake the first, but really run the second
2018-05-19 11:29:30 +02:00
Yohan Boniface
cb470198e6 Merge leaflet_storage locales 2018-05-19 11:12:19 +02:00
Yohan Boniface
8b3d8c5ece Add a migration to create a Licence if none exists 2016-11-26 17:29:00 +01:00
Yohan Boniface
3c32377c42 Add a migration to create a TileLayer if none exists 2016-11-26 17:25:59 +01:00