package org.ensembl.healthcheck.testcase.eg_core;

import java.sql.Connection;

import org.ensembl.healthcheck.DatabaseType;
import org.ensembl.healthcheck.Team;

/**
 * @author mnuhn
 * 
 * <p>
 * 	Test for correctness of variation schemas, suggests a patch, if the schemas 
 * differ.
 * </p>
 *
 */
public class EGCompareVariationSchema extends EGAbstractCompareSchema {

	public EGCompareVariationSchema() {
		setTeamResponsible(Team.ENSEMBL_GENOMES);
		addAppliesToType(DatabaseType.VARIATION);
	}

	@Override
	protected String getDefinitionFileKey() {
		return "variation_schema.file";
	}

	@Override
	protected String getMasterSchemaKey() {
		return "master.variation_schema";
	}

	@Override
	protected boolean assertSchemaCompatibility(
			Connection masterCon,
			Connection checkCon
	) {		
		return 
			assertSchemaTypesCompatible(masterCon, checkCon);
	}
}

@@ -449,16 +449,54 @@
 NOMES);%0A
+%09%7D%0A%0A%09@Override%0A%09public void types() %7B%0A
 %09%09addApp
@@ -530,24 +530,25 @@
 IATION);%0A%09%7D%0A
+%09
 %0A%09@Override%0A

Make it apply only to variation databases