summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp b/gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp
index 4b77a31..4560e95 100644
--- a/gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp
+++ b/gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp
@@ -150,7 +150,7 @@ namespace Gentoo {
dbc->patchTable(&t);
}
{
- dbc->execute("CREATE INDEX idxTmpEbuildUses ON tmpEbuildUses(ebuildId)");
+ dbc->execute("CREATE UNIQUE INDEX idxTmpEbuildUses ON tmpEbuildUses(ebuildId, use)");
DB::TablePatch t;
t.src = "tmpEbuildUses";
t.dest = "gentoobrowse.ebuild_uses";
@@ -160,7 +160,7 @@ namespace Gentoo {
dbc->patchTable(&t);
}
{
- dbc->execute("CREATE INDEX idxTmpEbuildArchs ON tmpEbuildArchs(ebuildId)");
+ dbc->execute("CREATE UNIQUE INDEX idxTmpEbuildArchs ON tmpEbuildArchs(ebuildId, arch)");
DB::TablePatch t;
t.src = "tmpEbuildArchs";
t.dest = "gentoobrowse.ebuild_archs";