Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Summary

The footnotes table provides information on footnotes while assigning them an ID that can be linked to the footnotes_values table. The data stored relating to the footnote include its footnote_id, its source and the dates it was created or modified.

Table Creation

 

CREATE TABLE IF NOT EXISTS `footnotes` (
`footnote_id` int(11) NOT NULL AUTO_INCREMENT,
`text` text NOT NULL,
`source_text` text,
`source` varchar(16) DEFAULT NULL,
`last_edit_date` date DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`footnote_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=131 ;

Fields

fieldtypeattributesnotesexample
footnote_idint(11)NOT NULL AUTO_INCREMENTProvided by Pellucid101
texttextNOT NULLProvides details on the footnote'Incomplete Reporting'
source_texttextDEFAULT NULLName or Information on the source'IPRO'
sourcevarchar(16)DEFAULT NULLIdentifying source information12345ABCDE
last_edit_datedateDEFAULT NULLdate of last upload2010-05-18
createdtimestampNOT NULL DEFAULT '0000-00-00 00:00:00'creation date and time2010-05-18 09:15:36
modifiedtimestampNOT NULL DEFAULT '0000-00-00 00:00:00' on update CURRENT_TIMESTAMPdate and time of modification2010-05-18 09:15:36
  • No labels