Skip to content

Commit 220d8cc

Browse files
committed
fix: Add missing migration
1 parent c2188fe commit 220d8cc

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Generated by Django 5.2.10 on 2026-02-03 19:39
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
('multitenancy', '0020_add_costrates_view_permission'),
9+
]
10+
11+
operations = [
12+
migrations.RemoveConstraint(
13+
model_name='organizationrole',
14+
name='unique_system_role_per_tenant',
15+
),
16+
migrations.AlterField(
17+
model_name='organizationrole',
18+
name='system_role_type',
19+
field=models.CharField(
20+
blank=True,
21+
choices=[('OWNER', 'Owner'), ('ADMIN', 'Administrator'), ('MEMBER', 'Member')],
22+
default='',
23+
help_text='If set, this is a system template role',
24+
max_length=20,
25+
),
26+
),
27+
migrations.AddConstraint(
28+
model_name='organizationrole',
29+
constraint=models.UniqueConstraint(
30+
condition=models.Q(('system_role_type__gt', '')),
31+
fields=('tenant', 'system_role_type'),
32+
name='unique_system_role_per_tenant',
33+
),
34+
),
35+
]

0 commit comments

Comments
 (0)