You are here

function biblio_update_4 in Bibliography Module 5

File

./biblio.install, line 391

Code

function biblio_update_4() {
  $result = array();
  $result[] = update_sql("ALTER TABLE {biblio_type_details} DROP COLUMN visible;");
  $result[] = update_sql("ALTER TABLE {biblio}\n                ADD  `biblio_custom1` varchar(255) default NULL,\n                ADD  `biblio_custom2` varchar(255) default NULL,\n                ADD  `biblio_custom3` varchar(255) default NULL,\n                ADD  `biblio_custom4` varchar(255) default NULL,\n                ADD  `biblio_custom5` varchar(255) default NULL,\n                ADD  `biblio_custom6` varchar(255) default NULL,\n                ADD  `biblio_custom7` varchar(255) default NULL,\n                ADD  `biblio_research_notes` text,\n                ADD  `biblio_number_of_volumes` varchar(10) default NULL,\n                ADD  `biblio_short_title` varchar(255) default NULL,\n                ADD  `biblio_alternate_title` varchar(255) default NULL,\n                ADD  `biblio_original_publication` varchar(255) default NULL,\n                ADD  `biblio_reprint_edition` varchar(255) default NULL,\n                ADD  `biblio_translated_title` varchar(255) default NULL;");
  $result[] = update_sql("INSERT INTO {biblio_fields} (`fid`,`name`,`title`,`common`,`type`,`size`,`maxsize`,`hint`,`required`,`visible`,`weight`) VALUES\n       (28,'biblio_research_notes','Reseach Notes',0,'textarea',60,15,'',0,0,160),\n       (29,'biblio_custom1','Custom 1',0,'textfield',120,255,'',0,0,161),\n       (30,'biblio_custom2','Custom 2',0,'textfield',120,255,'',0,0,162),\n       (31,'biblio_custom3','Custom 3',0,'textfield',120,255,'',0,0,163),\n       (32,'biblio_custom4','Custom 4',0,'textfield',120,255,'',0,0,164),\n       (33,'biblio_custom5','Custom 5',0,'textfield',120,255,'',0,0,165),\n       (34,'biblio_custom6','Custom 6',0,'textfield',120,255,'',0,0,167),\n       (35,'biblio_custom7','Custom 7',0,'textfield',120,255,'',0,0,168),\n       (36,'biblio_number_of_volumes','Number of Volumes',0,'textfield',10,10,'',0,0,15),\n       (37,'biblio_short_title','Short Title',0,'textfield',120,255,'',0,0,169),\n       (38,'biblio_alternate_title','Alternate Title',0,'textfield',120,255,'',0,0,170),\n       (39,'biblio_translated_title','Translated Title',0,'textfield',120,255,'',0,0,170),\n       (40,'biblio_original_publication','Original Publication',0,'textfield',120,255,'',0,0,171),\n       (41,'biblio_reprint_edition','Reprint Edition',0,'textfield',120,255,'',0,0,172);");
  return $result;
}