Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /*!40101 SET @saved_cs_client = @@character_set_client */; | 1 /*!40101 SET @saved_cs_client = @@character_set_client */; |
2 /*!40101 SET character_set_client = utf8 */; | 2 /*!40101 SET character_set_client = utf8 */; |
3 CREATE TABLE `filters` ( | 3 CREATE TABLE `filters` ( |
4 `md5` BINARY(16) NOT NULL, | 4 `sha1` BINARY(20) NOT NULL, |
5 `filter` TEXT CHARACTER SET utf8 NOT NULL, | 5 `filter` TEXT CHARACTER SET utf8 NOT NULL, |
6 PRIMARY KEY(md5) | 6 PRIMARY KEY(sha1) |
7 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | |
8 | |
9 CREATE TABLE `frequencies` ( | |
10 `filter_sha1` BINARY(20) NOT NULL, | |
11 `domain` varchar(255) CHARACTER SET utf8 NOT NULL, | |
12 `frequency` int(10) unsigned DEFAULT 0 NOT NULL, | |
13 `timestamp` timestamp NOT NULL, | |
14 PRIMARY KEY(domain, filter_sha1) | |
7 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | 15 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
8 /*!40101 SET character_set_client = @saved_cs_client */; | 16 /*!40101 SET character_set_client = @saved_cs_client */; |
9 | |
10 /*!40101 SET @saved_cs_client = @@character_set_client */; | |
11 /*!40101 SET character_set_client = utf8 */; | |
Sebastian Noack
2015/02/11 16:00:12
This is redundant with the above. Not that we have
kzar
2015/02/17 10:52:24
Done.
Sebastian Noack
2015/02/17 14:59:17
I just realized a typo in my comment above. I actu
| |
12 CREATE TABLE `geometrical_mean` ( | |
13 `filter_md5` BINARY(16) NOT NULL, | |
14 `domain` varchar(255) CHARACTER SET utf8 NOT NULL, | |
15 `hits` int(10) unsigned DEFAULT 0 NOT NULL, | |
16 `timestamp` timestamp NOT NULL, | |
17 PRIMARY KEY(domain, filter_md5) | |
18 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | |
19 /*!40101 SET character_set_client = @saved_cs_client */; | |
LEFT | RIGHT |