Difference between revisions of "Database Table: infohistory"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with 'infohistory =Definition= <source lang="sql"> CREATE TABLE infohistory ( userid int(10) unsigned NOT NULL default '0', what varchar(15) NOT NULL d...')
 
(Robot: Updating: Format)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category: Database Table|infohistory]]
+
{{Database Table|name=infohistory|table type=global|need desc=1|repo=dw-free}}
=Definition=
+
= Definition =
 
<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}}
=Relationships=
+
Foreign key userid to [[Database Table: user|user]].userid
+
 
+
=Location=
+
[[Global database]]
+

Latest revision as of 16:00, 22 July 2010

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