Project

General

Profile

« Previous | Next » 

Revision 2adab869

Added by Andreas Müller over 2 years ago

update BgbmInstancesUpdater

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/database/update/BgbmInstancesUpdater.java
28 28

  
29 29
	private static String[] integrationDatabases = new String[]{
30 30
	    "cdm_integration_cichorieae",
31
		"cdm_integration_cyprus", "cdm_integration_diptera",
31
		"cdm_integration_cyprus",
32
		"cdm_integration_diptera",
32 33
	    "cdm_integration_flora_malesiana",
33
		"cdm_integration_palmae","cdm_integration_reference"
34
		"cdm_integration_palmae",
35
		"cdm_integration_reference"
34 36
	};
35 37

  
36 38
	private static String[] testDatabases = new String[]{
37
//	    "cdm_col",
38 39
	    "cdm_Test_Caryophyllales",
39 40
	    "cdm_additivity_test",
40 41
        "cdm_bgbm_edit_usergroup",
41 42
	    "cdm_campanulaceae","cdm_caryo_nepenthes",
42 43
	    "cdm_caryo_spp","cdm_causcasus_workshop",
43 44
        "cdm_corvidae", "cdm_cyprus","cdm_edaphobase_test",
44
		"cdm_edit_algaterra", "cdm_edit_algaterranew","cdm_edit_cichorieae",
45
		"cdm_edit_algaterra", "cdm_edit_algaterra_","cdm_edit_cichorieae",
45 46
		"cdm_edit_flora_central_africa", "cdm_edit_flora_malesiana",
46 47
		"cdm_edit_globis", "cdm_edit_palmae",
47 48
		"cdm_flora_cuba", "cdm_flora_guianas",
48 49
		"cdm_flore_gabon",
49
	    "cdm_iapt",
50 50
		"cdm_mt_moose",
51 51
		"cdm_mt_standardliste",
52
//	    "cdm_pesi_all",
52 53
		"cdm_pesi_erms", "cdm_pesi_euromed", "cdm_pesi_fauna_europaea",
53 54
		"cdm_phycobank",
55
	    "cdm_production_additivity_ontology",
54 56
		"cdm_proibiosphere_chenopodium_pilot",
55 57
		"cdm_rem_conf_ak", "cdm_rem_conf_am", "cdm_rem_conf_kl", "cdm_rem_conf_pp",
56 58
		"cdm_rl_animalia","cdm_rl_german_sl","cdm_rl_mammalia", "cdm_rl_plantae",
......
113 115
		"cdm_production_vibrant_index"
114 116
	};
115 117

  
116

  
117
	static BgbmServer bgbmServer = BgbmServer.TEST;
118

  
118
    static BgbmServer bgbmServer = BgbmServer.TEST;
119 119

  
120 120
	static String username = "edit";
121 121

  
122

  
123

  
124

  
125
    /**
126
     *
127
     */
128 122
    private static void updateToCurrentVersion() {
129 123
        DbSchemaValidation schema = DbSchemaValidation.VALIDATE;
130 124
    	String server = bgbmServer.server;
......
152 146
    	}
153 147
    }
154 148

  
155

  
156
    /**
157
     *
158
     */
159 149
    private static void singleUpdateStep(boolean startApp) {
160 150
        DbSchemaValidation schema = DbSchemaValidation.VALIDATE;
161 151
        String server = bgbmServer.server;
......
193 183

  
194 184
    }
195 185

  
196

  
197
    /**
198
     * @param args
199
     */
200 186
    public static void  main(String[] args) {
201 187
        updateToCurrentVersion();
202 188
//        singleUpdateStep(false);
203 189
        System.exit(0);
204 190
    }
205 191

  
206

  
207 192
    private enum BgbmServer{
208 193
		INTEGRATION (integrationServer, integrationDatabases),
209 194
		TEST(testServer,testDatabases),
......
214 199
			this.server = server;
215 200
			this.databases = databases;
216 201
		}
217

  
218 202
	}
219 203
}

Also available in: Unified diff