umap/umap/migrations/0026_datalayer_modified_at_datalayer_share_status.py
Yohan Boniface fd8a1971f8 feat: soft delete datalayers
When deleting a datalayer, it will now be moved to a state "deleted", and
it will only be deleted for real when running the command `umap empty_trash`.

This is what we already do for the map itself, but until now if a user
deleted a only a datalayer by mistake (not the map itself) it could not retrieve
it.
2025-01-29 19:08:59 +01:00

26 lines
696 B
Python

# Generated by Django 5.1.4 on 2025-01-29 18:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("umap", "0025_alter_datalayer_geojson"),
]
operations = [
migrations.AddField(
model_name="datalayer",
name="modified_at",
field=models.DateTimeField(auto_now=True),
),
migrations.AddField(
model_name="datalayer",
name="share_status",
field=models.SmallIntegerField(
choices=[(0, "Inherit"), (99, "Deleted")],
default=0,
verbose_name="share status",
),
),
]