Index: sitescripts/filterhits/schema.sql |
diff --git a/sitescripts/filterhits/schema.sql b/sitescripts/filterhits/schema.sql |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4bc565fc23e8dc54cdaa59bb73ca87db8782f03c |
--- /dev/null |
+++ b/sitescripts/filterhits/schema.sql |
@@ -0,0 +1,16 @@ |
+/*!40101 SET @saved_cs_client = @@character_set_client */; |
+/*!40101 SET character_set_client = utf8 */; |
+CREATE TABLE `filters` ( |
+ `sha1` BINARY(20) NOT NULL, |
+ `filter` TEXT CHARACTER SET utf8 NOT NULL, |
+ PRIMARY KEY(sha1) |
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
+ |
+CREATE TABLE `frequencies` ( |
+ `filter_sha1` BINARY(20) NOT NULL, |
+ `domain` varchar(255) CHARACTER SET utf8 NOT NULL, |
+ `hits` int(10) unsigned DEFAULT 0 NOT NULL, |
+ `timestamp` timestamp NOT NULL, |
+ PRIMARY KEY(domain, filter_sha1) |
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; |
+/*!40101 SET character_set_client = @saved_cs_client */; |