Difference between revisions of "Database Table: infohistory"

From Dreamwidth Notes
Jump to: navigation, search
m
(Robot: Updating: Format, definition)
Line 3: Line 3:
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE infohistory (
 
CREATE TABLE infohistory (
  userid int(10) unsigned NOT NULL default '0',
+
    userid int(10) unsigned NOT NULL default '0',
  what varchar(15) NOT NULL default '',
+
    what varchar(15) NOT NULL default '',
  timechange datetime NOT NULL default '0000-00-00 00:00:00',
+
    timechange datetime NOT NULL default '0000-00-00 00:00:00',
  oldvalue varchar(255) default NULL,
+
    oldvalue varchar(255) default NULL,
  other varchar(30) default NULL,
+
    other varchar(30) default NULL,
  KEY userid (userid)
+
 
 +
    KEY userid (userid)
 
)
 
)
 
</source>
 
</source>
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Revision as of 07:11, 28 January 2010

"{{{repo}}}" is not in the list of possible values (dw-free, dw-nonfree) for this property. This is a global table.

Definition

CREATE TABLE infohistory (
    userid INT(10) UNSIGNED NOT NULL DEFAULT '0',
    what VARCHAR(15) NOT NULL DEFAULT '',
    timechange datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
    oldvalue VARCHAR(255) DEFAULT NULL,
    other VARCHAR(30) DEFAULT NULL,
 
    KEY userid (userid)
)

Relationships

Outgoing

  • Foreign key: userid to user.userid