Migration adjustments

pull/14/head
Sam Bosley 12 years ago
parent f460bfb23b
commit 5b43b7e308

@ -49,6 +49,7 @@ public class Astrid44SyncMigrator {
// -------------- // --------------
Query noTagDataQuery = Query.select(Metadata.PROPERTIES).where(Criterion.and( Query noTagDataQuery = Query.select(Metadata.PROPERTIES).where(Criterion.and(
MetadataCriteria.withKey(TagMetadata.KEY), MetadataCriteria.withKey(TagMetadata.KEY),
Criterion.or(TagMetadata.TAG_UUID.isNull(), TagMetadata.TAG_UUID.eq(0)),
Criterion.not(TagMetadata.TAG_NAME.in(Query.select(TagData.NAME).from(TagData.TABLE))))).groupBy(TagMetadata.TAG_NAME); Criterion.not(TagMetadata.TAG_NAME.in(Query.select(TagData.NAME).from(TagData.TABLE))))).groupBy(TagMetadata.TAG_NAME);
TodorooCursor<Metadata> noTagData = metadataService.query(noTagDataQuery); TodorooCursor<Metadata> noTagData = metadataService.query(noTagDataQuery);

Loading…
Cancel
Save