t('The base table for blastdb node'), 'fields' => array( 'nid' => array( 'description' => t('The primary identifier for a node.'), 'type' => 'serial', 'unsigned' => true, 'not null' => true, ), 'name' => array( 'description' => t('The human-readable name of the blast database.'), 'type' => 'varchar', 'length' => 255, 'not null' => true, ), 'path' => array( 'description' => t('The full path and filename prefix of the blast database.'), 'type' => 'varchar', 'length' => 1023, 'not null' => true, ), 'dbtype' => array( 'description' => t('Type of the blast database. Should be either n for nucleotide or p for protein.'), 'type' => 'varchar', 'length' => 15, 'not null' => true, ), ), 'indexes' => array( 'name' => array('name'), ), 'primary key' => array('nid'), 'unique keys' => array( 'nid' => array('nid'), ), ); return $schema; } /** * Changing the length of the type field to allow it to be more readable. */ function blast_ui_update_7101() { // Changing the length of the type field to allow it to be more readable. db_change_field('blastdb', 'dbtype', 'dbtype', array( 'description' => t('Type of the blast database. Should be either n for nucleotide or p for protein.'), 'type' => 'varchar', 'length' => 15, 'not null' => true, ) ); }