Skip to content

Commit 1fe011a

Browse files
fixup! nit re #10541, rename tables
1 parent c991527 commit 1fe011a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by Django 4.2.10 on 2024-02-21 17:58
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("models", "10541_controlled_list_manager"),
9+
]
10+
11+
operations = [
12+
migrations.AlterModelTable(
13+
name="controlledlist",
14+
table="controlled_lists",
15+
),
16+
migrations.AlterModelTable(
17+
name="controlledlistitem",
18+
table="controlled_list_items",
19+
),
20+
migrations.AlterModelTable(
21+
name="controlledlistitemlabel",
22+
table="controlled_list_item_labels",
23+
),
24+
]

arches/app/models/models.py

+5
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,9 @@ class ControlledList(models.Model):
18441844
name = models.CharField(max_length=127, null=False)
18451845
dynamic = models.BooleanField(default=False)
18461846

1847+
class Meta:
1848+
db_table = "controlled_lists"
1849+
18471850

18481851
class ControlledListItem(models.Model):
18491852
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
@@ -1861,6 +1864,7 @@ class ControlledListItem(models.Model):
18611864
)
18621865

18631866
class Meta:
1867+
db_table = "controlled_list_items"
18641868
constraints = [
18651869
# Sort order concerns the list as a whole, not subsets
18661870
# of the hierarchy.
@@ -1896,6 +1900,7 @@ class ControlledListItemLabel(models.Model):
18961900
value = models.CharField(max_length=1024, null=False)
18971901

18981902
class Meta:
1903+
db_table = "controlled_list_item_labels"
18991904
constraints = [
19001905
models.UniqueConstraint(
19011906
fields=["item", "value", "value_type", "language"],

0 commit comments

Comments
 (0)