forked from qt-creator/qt-creator
Clang: Fix index for project part sources
The index has to be unique so that the inserting will be fail. We have to add integration tests if everything is finished. Change-Id: I4e20b90f1865d548572d2e634ac934f81da957c2 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -128,7 +128,7 @@ public:
|
||||
table.setName("projectPartsSources");
|
||||
const Sqlite::Column &projectPartIdColumn = table.addColumn("projectPartId", Sqlite::ColumnType::Integer);
|
||||
const Sqlite::Column &sourceIdColumn = table.addColumn("sourceId", Sqlite::ColumnType::Integer);
|
||||
table.addIndex({sourceIdColumn, projectPartIdColumn});
|
||||
table.addUniqueIndex({sourceIdColumn, projectPartIdColumn});
|
||||
table.addIndex({projectPartIdColumn});
|
||||
|
||||
table.initialize(database);
|
||||
|
||||
Reference in New Issue
Block a user