Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
b3e18a850e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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,