mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 22:21:13 +03:00
inventory is unique on <name, org>
* was unique on name because we were inheriting from a Model that had it defined as such. Thus our expression of uniqueness in the Inventory Model was meaningless.
This commit is contained in:
parent
fd56a7acbb
commit
01ec443380
19
awx/main/migrations/0052_v310_inventory_name_non_unique.py
Normal file
19
awx/main/migrations/0052_v310_inventory_name_non_unique.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('main', '0051_v310_job_project_update'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='inventory',
|
||||
name='name',
|
||||
field=models.CharField(max_length=512),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user