소스 검색

SQL : Explications sur le choix de varchar(760)

varchar(760) est choisi pour pouvoir être utilisé efficacement dans un
UNIQUE() avec les limites de InnoDB de MySQL
Alexandre Alapetite 12 년 전
부모
커밋
b3e18a850e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/install.php

+ 1 - 1
public/install.php

@@ -43,7 +43,7 @@ define ('SQL_REQ_FEED', 'CREATE TABLE IF NOT EXISTS `%sfeed` (
 
 define ('SQL_REQ_ENTRY', 'CREATE TABLE IF NOT EXISTS `%sentry` (
   `id` char(6) NOT NULL,
-  `guid` varchar(760) CHARACTER SET latin1 NOT NULL,
+  `guid` varchar(760) CHARACTER SET latin1 NOT NULL,	-- Maximum for UNIQUE is 767B
   `title` varchar(255) NOT NULL,
   `author` varchar(255) NOT NULL,
   `content` text NOT NULL,