mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 03:17:39 -02:30
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:
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),
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user