blob: 7f89e9a839e912e5b73e75c521b97a1b521bcd6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "library/dao/trackschema.h"
namespace mixxx {
namespace TrackSchema {
QString tableForColumn(const QString& columnName) {
if (columnName == TRACKLOCATIONSTABLE_FSDELETED || columnName == TRACKLOCATIONSTABLE_LOCATION) {
return QStringLiteral(TRACKLOCATIONS_TABLE);
}
// This doesn't detect unknown columns, but that's not really important here.
return QStringLiteral(LIBRARY_TABLE);
}
} // namespace TrackSchema
} // namespace mixxx
|