diff --git a/backend/apps/api/v1/migrations/0050_table_is_deprecated.py b/backend/apps/api/v1/migrations/0050_table_is_deprecated.py new file mode 100644 index 00000000..c703d6ac --- /dev/null +++ b/backend/apps/api/v1/migrations/0050_table_is_deprecated.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.16 on 2024-11-06 04:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('v1', '0049_poll_pipeline'), + ] + + operations = [ + migrations.AddField( + model_name='table', + name='is_deprecated', + field=models.BooleanField(default=False, help_text='We stopped maintaining this table for some reason. Examples: raw data deprecated, new version elsewhere, etc.'), + ), + ] diff --git a/backend/apps/api/v1/models.py b/backend/apps/api/v1/models.py index cbf60544..669284fb 100644 --- a/backend/apps/api/v1/models.py +++ b/backend/apps/api/v1/models.py @@ -880,6 +880,10 @@ class Table(BaseModel, OrderedModel): status = models.ForeignKey( "Status", on_delete=models.PROTECT, related_name="tables", null=True, blank=True ) + is_deprecated = models.BooleanField( + default=False, + help_text="We stopped maintaining this table for some reason. Examples: raw data deprecated, new version elsewhere, etc." + ) license = models.ForeignKey( "License", on_delete=models.SET_NULL,