View difference between Paste ID: uVNucXHp and F9qX8MXx
SHOW: | | - or go back to the newest paste.
1
-- phpMyAdmin SQL Dump
2-
-- version 4.0.1
2+
-- version 4.0.5
3
-- http://www.phpmyadmin.net
4
--
5-
-- Host: localhost
5+
-- Host: 127.10.59.2:3306
6-
-- Generation Time: Jan 09, 2014 at 11:05 PM
6+
-- Generation Time: Jan 30, 2014 at 12:49 PM
7-
-- Server version: 5.1.62-0ubuntu0.10.04.1
7+
-- Server version: 5.1.71
8-
-- PHP Version: 5.4.15-1~lucid+1
8+
-- PHP Version: 5.3.3
9
10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11
SET time_zone = "+00:00";
12
13
--
14
-- Database: `open`
15
--
16
17
-- --------------------------------------------------------
18
19
--
20
-- Table structure for table `chat`
21
--
22
23
CREATE TABLE IF NOT EXISTS `chat` (
24
  `id` int(11) NOT NULL AUTO_INCREMENT,
25
  `uid` int(11) NOT NULL,
26
  `fid` int(11) NOT NULL,
27
  `msg` text NOT NULL,
28
  `posted` varchar(20) NOT NULL,
29
  `red` int(1) NOT NULL,
30
  PRIMARY KEY (`id`)
31
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
32
33
-- --------------------------------------------------------
34
35
--
36
-- Table structure for table `clikes`
37
--
38
39
CREATE TABLE IF NOT EXISTS `clikes` (
40
  `uid` int(11) NOT NULL,
41
  `cid` int(11) NOT NULL,
42
  `liked` varchar(20) NOT NULL
43-
  UNIQUE KEY `id` (`id`),
43+
44-
  UNIQUE KEY `posted` (`posted`),
44+
45-
  KEY `id_2` (`id`),
45+
46-
  KEY `uid` (`uid`),
46+
47-
  KEY `pid` (`pid`),
47+
48-
  KEY `posted_2` (`posted`),
48+
49-
  FULLTEXT KEY `cmt` (`cmt`),
49+
50-
  FULLTEXT KEY `posted_3` (`posted`)
50+
51-
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=52 ;
51+
52
  `id` int(11) NOT NULL AUTO_INCREMENT,
53
  `uid` int(11) NOT NULL,
54
  `pid` int(11) NOT NULL,
55
  `cmt` text NOT NULL,
56
  `posted` varchar(30) NOT NULL,
57
  `likes` int(11) NOT NULL,
58
  PRIMARY KEY (`id`)
59
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=72 ;
60
61
-- --------------------------------------------------------
62-
  `since` varchar(20) NOT NULL,
62+
63-
  PRIMARY KEY (`since`),
63+
64-
  UNIQUE KEY `since` (`since`),
64+
65-
  KEY `uid` (`uid`),
65+
66-
  KEY `fid` (`fid`),
66+
67-
  KEY `since_2` (`since`),
67+
68-
  FULLTEXT KEY `since_3` (`since`)
68+
69
  `fid` int(11) NOT NULL,
70
  `since` varchar(20) NOT NULL
71
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
72
73
-- --------------------------------------------------------
74
75
--
76
-- Table structure for table `data`
77
--
78
79
CREATE TABLE IF NOT EXISTS `data` (
80-
  `txt` longtext NOT NULL,
80+
81-
  PRIMARY KEY (`uid`),
81+
  `name` varchar(50) NOT NULL,
82-
  UNIQUE KEY `uid` (`uid`),
82+
  `txt` longtext NOT NULL
83-
  KEY `uid_2` (`uid`),
83+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
84-
  KEY `name` (`name`),
84+
85-
  FULLTEXT KEY `name_2` (`name`),
85+
86-
  FULLTEXT KEY `txt` (`txt`)
86+
87
--
88
-- Table structure for table `likes`
89
--
90
91
CREATE TABLE IF NOT EXISTS `likes` (
92
  `uid` int(11) NOT NULL,
93
  `pid` int(11) NOT NULL,
94
  `liked` varchar(20) NOT NULL
95
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
96
97
-- --------------------------------------------------------
98
99
--
100
-- Table structure for table `mails`
101
--
102
103
CREATE TABLE IF NOT EXISTS `mails` (
104
  `id` int(11) NOT NULL AUTO_INCREMENT,
105
  `email` varchar(150) NOT NULL,
106
  `sub` text NOT NULL,
107
  `message` text NOT NULL,
108
  PRIMARY KEY (`id`)
109
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
110
111
-- --------------------------------------------------------
112
113
--
114
-- Table structure for table `notify`
115
--
116
117
CREATE TABLE IF NOT EXISTS `notify` (
118
  `id` int(11) NOT NULL AUTO_INCREMENT,
119
  `uid` int(11) NOT NULL,
120
  `fid` int(11) NOT NULL,
121-
  UNIQUE KEY `social_oauth_session_index` (`session`,`server`),
121+
  `ty` varchar(10) NOT NULL,
122-
  UNIQUE KEY `id` (`id`),
122+
  `post` varchar(100) NOT NULL,
123-
  UNIQUE KEY `state` (`state`),
123+
124-
  UNIQUE KEY `type` (`type`),
124+
  `red` int(11) NOT NULL,
125-
  UNIQUE KEY `creation` (`creation`),
125+
  PRIMARY KEY (`id`)
126-
  UNIQUE KEY `user` (`user`),
126+
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=129 ;
127-
  UNIQUE KEY `expiry` (`expiry`),
127+
128-
  UNIQUE KEY `authorized` (`authorized`),
128+
129-
  KEY `id_2` (`id`),
129+
130-
  KEY `session` (`session`),
130+
131-
  KEY `state_2` (`state`),
131+
132-
  KEY `expiry_2` (`expiry`),
132+
133-
  KEY `type_2` (`type`),
133+
134-
  KEY `server` (`server`),
134+
135-
  KEY `creation_2` (`creation`),
135+
136-
  KEY `authorized_2` (`authorized`),
136+
137-
  KEY `user_2` (`user`)
137+
138-
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
138+
139
  `expiry` datetime DEFAULT NULL,
140
  `type` char(12) NOT NULL DEFAULT '',
141
  `server` char(12) NOT NULL DEFAULT '',
142
  `creation` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
143
  `access_token_secret` mediumtext NOT NULL,
144
  `authorized` char(1) DEFAULT NULL,
145
  `user` int(10) unsigned NOT NULL,
146
  `refresh_token` mediumtext NOT NULL,
147
  PRIMARY KEY (`id`),
148
  UNIQUE KEY `social_oauth_session_index` (`session`,`server`)
149
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=369 ;
150
151
-- --------------------------------------------------------
152
153
--
154
-- Table structure for table `posts`
155-
  UNIQUE KEY `id` (`id`),
155+
156-
  UNIQUE KEY `posted` (`posted`),
156+
157-
  KEY `id_2` (`id`),
157+
158-
  KEY `uid` (`uid`),
158+
159-
  KEY `posted_2` (`posted`),
159+
160-
  KEY `privacy` (`privacy`),
160+
161-
  KEY `likes` (`likes`),
161+
162-
  KEY `cmts` (`cmts`),
162+
163-
  FULLTEXT KEY `post` (`post`),
163+
164-
  FULLTEXT KEY `posted_3` (`posted`),
164+
165-
  FULLTEXT KEY `privacy_2` (`privacy`)
165+
  PRIMARY KEY (`id`)
166-
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=175 ;
166+
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=131 ;
167
168
-- --------------------------------------------------------
169
170
--
171
-- Table structure for table `trend`
172
--
173
174
CREATE TABLE IF NOT EXISTS `trend` (
175
  `title` varchar(50) NOT NULL,
176-
  `hits` int(11) NOT NULL,
176+
  `hits` int(11) NOT NULL
177-
  PRIMARY KEY (`title`),
177+
178-
  UNIQUE KEY `title` (`title`),
178+
179-
  KEY `title_2` (`title`),
179+
180-
  KEY `hits` (`hits`),
180+
181-
  FULLTEXT KEY `title_3` (`title`)
181+
182
-- Table structure for table `users`
183
--
184
185
CREATE TABLE IF NOT EXISTS `users` (
186
  `id` int(11) NOT NULL AUTO_INCREMENT,
187
  `username` text NOT NULL,
188
  `password` text NOT NULL,
189
  `psalt` text NOT NULL,
190
  `name` varchar(100) NOT NULL,
191
  `udata` text NOT NULL,
192
  `seen` varchar(20) NOT NULL,
193
  PRIMARY KEY (`id`)
194
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=229 ;
195
196
-- --------------------------------------------------------
197-
  UNIQUE KEY `id` (`id`),
197+
198-
  KEY `id_2` (`id`),
198+
199-
  FULLTEXT KEY `username` (`username`),
199+
200-
  FULLTEXT KEY `password` (`password`),
200+
201-
  FULLTEXT KEY `psalt` (`psalt`),
201+
202-
  FULLTEXT KEY `udata` (`udata`)
202+
203-
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
203+
204
  `code` varchar(35) NOT NULL,
205
  `posted` varchar(20) NOT NULL
206
) ENGINE=MyISAM DEFAULT CHARSET=utf8;