Difference between revisions of "Database Table: moods"

From Dreamwidth Notes
Jump to: navigation, search
(Robot: Updating: Format, needs desc, definition)
(Robot: Updating: Format, definition)
Line 6: Line 6:
 
     mood varchar(40) default NULL,
 
     mood varchar(40) default NULL,
 
     parentmood int(10) unsigned NOT NULL default '0',
 
     parentmood int(10) unsigned NOT NULL default '0',
 +
    weight tinyint unsigned default NULL,
  
 
     PRIMARY KEY  (moodid),
 
     PRIMARY KEY  (moodid),

Revision as of 07:23, 16 June 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 moods (
    moodid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
    mood VARCHAR(40) DEFAULT NULL,
    parentmood INT(10) UNSIGNED NOT NULL DEFAULT '0',
    weight tinyint UNSIGNED DEFAULT NULL,
 
    PRIMARY KEY  (moodid),
    UNIQUE KEY mood (mood)
)

Relationships