incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [20/27] git commit: [#6314] Changed ShortURLs to be unique to the app instance instead of globally unique
Date Fri, 07 Jun 2013 23:42:15 GMT
[#6314] Changed ShortURLs to be unique to the app instance instead of globally unique

Signed-off-by: Cory Johns <cjohns@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/db/6276
Commit: 2b74a7de63284c6135803928bf9c3e168da9c6bb
Parents: 445b640
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Wed Jun 5 16:27:38 2013 +0000
Committer: Cory Johns <cjohns@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)


Mime
View raw message