[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/resources/sql/patches/ -> 061.phrictioncontent.sql (source)

   1  /* Patch 060 neglected to make this an AUTO_INCREMENT PRIMARY KEY */
   2  ALTER TABLE {$NAMESPACE}_phriction.phriction_document
   3    CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY;
   4  
   5  /* Needs to be initially nullable for insert when documents are created. */
   6  ALTER TABLE {$NAMESPACE}_phriction.phriction_document
   7    CHANGE contentID contentID INT UNSIGNED;
   8  
   9  CREATE TABLE {$NAMESPACE}_phriction.phriction_content (
  10    id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  11    documentID INT UNSIGNED NOT NULL,
  12    version INT UNSIGNED NOT NULL,
  13    UNIQUE KEY (documentID, version),
  14    authorPHID VARCHAR(64) BINARY NOT NULL,
  15    KEY (authorPHID),
  16    title VARCHAR(512) NOT NULL,
  17    slug VARCHAR(512) NOT NULL,
  18    KEY (slug),
  19    content LONGBLOB NOT NULL,
  20    dateCreated INT UNSIGNED NOT NULL,
  21    dateModified INT UNSIGNED NOT NULL
  22  ) ENGINE=InnoDB;


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1