Difference between revisions of "Database Table: s2layers"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: Converting database table to use database table header template.)
(Robot: Updating: Format)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Database Table|name=s2layers|table type=global}}
+
{{Database Table|name=s2layers|table type=global|need desc=1|repo=dw-free}}
 
= Definition =
 
= Definition =
 +
<source lang="sql">
 +
CREATE TABLE s2layers (
 +
    s2lid INT UNSIGNED NOT NULL AUTO_INCREMENT,
 +
    PRIMARY KEY (s2lid),
 +
    b2lid INT UNSIGNED NOT NULL,
 +
    userid INT UNSIGNED NOT NULL,
 +
    type ENUM('core','i18nc','layout','theme','i18n','user') NOT NULL,
  
<source lang="sql">
+
    INDEX (userid),
CREATE TABLE s2layers
+
    INDEX (b2lid, type)
(
+
  s2lid INT UNSIGNED NOT NULL AUTO_INCREMENT,
+
  PRIMARY KEY (s2lid),
+
  b2lid INT UNSIGNED NOT NULL,
+
  userid INT UNSIGNED NOT NULL,
+
  type ENUM('core','i18nc','layout','theme','i18n','user') NOT NULL,
+
  INDEX (userid),
+
  INDEX (b2lid, type)
+
 
)
 
)
 
</source>
 
</source>
 
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Latest revision as of 15:56, 22 July 2010

This is a global table.

Definition

CREATE TABLE s2layers (
    s2lid INT UNSIGNED NOT NULL AUTO_INCREMENT,
    PRIMARY KEY (s2lid),
    b2lid INT UNSIGNED NOT NULL,
    userid INT UNSIGNED NOT NULL,
    TYPE ENUM('core','i18nc','layout','theme','i18n','user') NOT NULL,
 
    INDEX (userid),
    INDEX (b2lid, TYPE)
)

Relationships