Difference between revisions of "Database Table: ml langs"

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=ml_langs|table type=global}}
+
{{Database Table|name=ml_langs|table type=global|need desc=1|repo=dw-free}}
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
CREATE TABLE ml_langs
+
CREATE TABLE ml_langs (
(
+
    lnid      SMALLINT UNSIGNED NOT NULL,
  lnid      SMALLINT UNSIGNED NOT NULL,
+
    UNIQUE (lnid),
  UNIQUE (lnid),
+
    lncode  VARCHAR(16) NOT NULL,  # en_US en_LJ en ch_HK ch_B5 etc... de_DE
  lncode  VARCHAR(16) NOT NULL,  # en_US en_LJ en ch_HK ch_B5 etc... de_DE
+
    UNIQUE (lncode),
  UNIQUE (lncode),
+
    lnname  VARCHAR(60) NOT NULL,  # "Deutsch"
  lnname  VARCHAR(60) NOT NULL,  # "Deutsch"
+
    parenttype  ENUM('diff','sim') NOT NULL,
  parenttype  ENUM('diff','sim') NOT NULL,
+
    parentlnid  SMALLINT UNSIGNED NOT NULL,
  parentlnid  SMALLINT UNSIGNED NOT NULL,
+
    lastupdate  DATETIME NOT NULL
  lastupdate  DATETIME NOT NULL
+
 
)
 
)
 
</source>
 
</source>
 
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Latest revision as of 16:03, 22 July 2010

This is a global table.

Definition

CREATE TABLE ml_langs (
    lnid      SMALLINT UNSIGNED NOT NULL,
    UNIQUE (lnid),
    lncode   VARCHAR(16) NOT NULL,  # en_US en_LJ en ch_HK ch_B5 etc... de_DE
    UNIQUE (lncode),
    lnname   VARCHAR(60) NOT NULL,   # "Deutsch"
    parenttype   ENUM('diff','sim') NOT NULL,
    parentlnid   SMALLINT UNSIGNED NOT NULL,
    lastupdate  DATETIME NOT NULL
)

Relationships