mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Add a unique constraint on 'name' and 'organization' for the custom scripts
This commit is contained in:
parent
9b61956c9e
commit
c04ac45296
@ -22,6 +22,7 @@ class Migration(SchemaMigration):
|
||||
('organization', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['main.Organization'])),
|
||||
))
|
||||
db.send_create_signal('main', ['CustomInventoryScript'])
|
||||
db.create_unique(u'main_custominventoryscript', ['name', 'organization_id'])
|
||||
|
||||
# Adding field 'InventoryUpdate.source_script'
|
||||
db.add_column(u'main_inventoryupdate', 'source_script',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user