|
@@ -171,10 +171,6 @@ function tripal_core_install_chado($action) {
|
|
function tripal_core_reset_chado_schema() {
|
|
function tripal_core_reset_chado_schema() {
|
|
|
|
|
|
// drop current chado and chado-related schema
|
|
// drop current chado and chado-related schema
|
|
- if (chado_dbschema_exists('chado')) {
|
|
|
|
- print "Dropping existing 'chado' schema\n";
|
|
|
|
- db_query("drop schema chado cascade");
|
|
|
|
- }
|
|
|
|
if (chado_dbschema_exists('genetic_code')) {
|
|
if (chado_dbschema_exists('genetic_code')) {
|
|
print "Dropping existing 'genetic_code' schema\n";
|
|
print "Dropping existing 'genetic_code' schema\n";
|
|
db_query("drop schema genetic_code cascade");
|
|
db_query("drop schema genetic_code cascade");
|
|
@@ -187,6 +183,10 @@ function tripal_core_reset_chado_schema() {
|
|
print "Dropping existing 'frange' schema\n";
|
|
print "Dropping existing 'frange' schema\n";
|
|
db_query("drop schema frange cascade");
|
|
db_query("drop schema frange cascade");
|
|
}
|
|
}
|
|
|
|
+ if (chado_dbschema_exists('chado')) {
|
|
|
|
+ print "Dropping existing 'chado' schema\n";
|
|
|
|
+ db_query("drop schema chado cascade");
|
|
|
|
+ }
|
|
|
|
|
|
// create the new chado schema
|
|
// create the new chado schema
|
|
print "Creating 'chado' schema\n";
|
|
print "Creating 'chado' schema\n";
|