Explorar el Código

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 hace 12 años
padre
commit
b3e18a850e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,