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