You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/06/07 21:27:22 UTC

[2/3] git commit: [#6314] Changed ShortURLs to be unique to the app instance instead of globally unique

[#6314] Changed ShortURLs to be unique to the app instance instead of globally unique

Signed-off-by: Cory Johns <cj...@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/2b74a7de
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/2b74a7de
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/2b74a7de

Branch: refs/heads/master
Commit: 2b74a7de63284c6135803928bf9c3e168da9c6bb
Parents: 445b640
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Wed Jun 5 16:27:38 2013 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Thu Jun 6 18:00:15 2013 +0000

----------------------------------------------------------------------
 ForgeShortUrl/forgeshorturl/model/shorturl.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2b74a7de/ForgeShortUrl/forgeshorturl/model/shorturl.py
----------------------------------------------------------------------
diff --git a/ForgeShortUrl/forgeshorturl/model/shorturl.py b/ForgeShortUrl/forgeshorturl/model/shorturl.py
index e765802..a16ef69 100644
--- a/ForgeShortUrl/forgeshorturl/model/shorturl.py
+++ b/ForgeShortUrl/forgeshorturl/model/shorturl.py
@@ -27,7 +27,7 @@ class ShortUrl(M.Artifact):
 
     class __mongometa__:
         name = 'short_urls'
-        unique_indexes = ['short_name']
+        unique_indexes = [('short_name', 'app_config_id')]
 
     type_s = 'ShortUrl'
     full_url = FieldProperty(str)