0002-a2_rbac-add-partial-unique-index-on-Role-s-name-3394.patch
src/authentic2/a2_rbac/migrations/0020_partial_unique_index_on_name.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
from __future__ import unicode_literals |
|
3 | ||
4 |
from django.db import models, migrations |
|
5 |
from authentic2.migrations import CreatePartialIndexes |
|
6 | ||
7 | ||
8 |
class Migration(migrations.Migration): |
|
9 | ||
10 |
dependencies = [ |
|
11 |
('a2_rbac', '0019_organizationalunit_show_username'), |
|
12 |
] |
|
13 | ||
14 |
operations = [ |
|
15 |
CreatePartialIndexes('Role', 'a2_rbac_role', 'a2_rbac_role_name_unique_idx', |
|
16 |
('ou_id',), ('name',), |
|
17 |
null_columns=('admin_scope_ct_id',)), |
|
18 |
] |
|
0 |
- |