From c04ac45296e7919b673b48af2088bfb5531d22fa Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 8 Dec 2014 15:49:45 -0500 Subject: [PATCH] Add a unique constraint on 'name' and 'organization' for the custom scripts --- awx/main/migrations/0055_v210_changes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/migrations/0055_v210_changes.py b/awx/main/migrations/0055_v210_changes.py index b76edddfdc..07df8a33d1 100644 --- a/awx/main/migrations/0055_v210_changes.py +++ b/awx/main/migrations/0055_v210_changes.py @@ -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',