Closed bradfordcondon closed 5 years ago
uninstall fails like so:
Wrong object type: 7 ERROR: "gene_prediction_pid_seq" is not a sequence [error]
HINT: Use DROP TABLE to remove a table. in /Users/chet/UTK/tripal/includes/database/database.inc:2227
Stack trace:
edit: dropping table fails because:
Wrong object type: 7 ERROR: "gene_prediction_pid_seq" is not a table [error]
HINT: Use DROP SEQUENCE to remove a sequence. in /Users/chet/UTK/tripal/includes/database/database.inc:2227
Stack trace:
gene_prediction_pid_seq
is not used elsewhere in the code. I think we can safely cut it. It was used to define the PKEY of ds_gene_prediction
.
'fields' => [
'pid' => [
'description' => 'Primary Key: Unique ID.',
'type' => 'serial',
'not null' => TRUE,
],
Serial is indeed the autoincrement type so we just dont need the SEQUENCE. Same is true for mapped_dataset_id_seq
.
So in both cases we can safely delete the tables.
In the install hook, we set up the tables that arent defined in schema: the "SEQUENCE" tables.