Skip to content

Commit

Permalink
feat: table.is_deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Nov 6, 2024
1 parent 93b1cd6 commit 970905d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions backend/apps/api/v1/migrations/0050_table_is_deprecated.py
Original file line number Diff line number Diff line change
@@ -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.'),
),
]
4 changes: 4 additions & 0 deletions backend/apps/api/v1/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 970905d

Please sign in to comment.