-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.sql
More file actions
85 lines (76 loc) · 3.41 KB
/
schema.sql
File metadata and controls
85 lines (76 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
-- MySQL dump 10.13 Distrib 5.1.73, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: click
-- ------------------------------------------------------
-- Server version 5.1.73-1-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Temporary table structure for view `BiggestPages`
--
DROP TABLE IF EXISTS `BiggestPages`;
/*!50001 DROP VIEW IF EXISTS `BiggestPages`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `BiggestPages` (
`ID` tinyint NOT NULL,
`Page` tinyint NOT NULL,
`Time` tinyint NOT NULL,
`IP` tinyint NOT NULL,
`Data` tinyint NOT NULL,
`Deleted` tinyint NOT NULL,
`LENGTH(``Data``)` tinyint NOT NULL
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `Pages`
--
DROP TABLE IF EXISTS `Pages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Pages` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`Page` varchar(255) NOT NULL,
`Time` int(10) NOT NULL,
`IP` varchar(32) NOT NULL,
`Data` longtext NOT NULL,
`Deleted` tinyint(1) NOT NULL,
PRIMARY KEY (`ID`),
KEY `Deleted` (`Deleted`),
KEY `Page` (`Page`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Final view structure for view `BiggestPages`
--
/*!50001 DROP TABLE IF EXISTS `BiggestPages`*/;
/*!50001 DROP VIEW IF EXISTS `BiggestPages`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8 */;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `BiggestPages` AS select `Pages`.`ID` AS `ID`,`Pages`.`Page` AS `Page`,`Pages`.`Time` AS `Time`,`Pages`.`IP` AS `IP`,`Pages`.`Data` AS `Data`,`Pages`.`Deleted` AS `Deleted`,length(`Pages`.`Data`) AS `LENGTH(``Data``)` from `Pages` where (`Pages`.`Deleted` = '0') order by length(`Pages`.`Data`) desc limit 0,50 */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2015-01-23 2:35:09