View difference between Paste ID: nJX46jzu 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 26, 2014 at 05:27 AM
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=19 ;
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=71 ;
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 `notify`
101
--
102
103
CREATE TABLE IF NOT EXISTS `notify` (
104
  `id` int(11) NOT NULL AUTO_INCREMENT,
105
  `uid` int(11) NOT NULL,
106
  `fid` int(11) NOT NULL,
107
  `ty` varchar(10) NOT NULL,
108
  `post` varchar(100) NOT NULL,
109
  `posted` varchar(20) NOT NULL,
110
  `red` int(11) NOT NULL,
111
  PRIMARY KEY (`id`)
112
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
113
114
-- --------------------------------------------------------
115
116
--
117
-- Table structure for table `oauth_session`
118
--
119
120
CREATE TABLE IF NOT EXISTS `oauth_session` (
121-
  UNIQUE KEY `social_oauth_session_index` (`session`,`server`),
121+
122-
  UNIQUE KEY `id` (`id`),
122+
123-
  UNIQUE KEY `state` (`state`),
123+
124-
  UNIQUE KEY `type` (`type`),
124+
125-
  UNIQUE KEY `creation` (`creation`),
125+
126-
  UNIQUE KEY `user` (`user`),
126+
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+
  UNIQUE KEY `social_oauth_session_index` (`session`,`server`)
135-
  KEY `creation_2` (`creation`),
135+
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=346 ;
136-
  KEY `authorized_2` (`authorized`),
136+
137-
  KEY `user_2` (`user`)
137+
138-
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
138+
139
--
140
-- Table structure for table `posts`
141
--
142
143
CREATE TABLE IF NOT EXISTS `posts` (
144
  `id` int(11) NOT NULL AUTO_INCREMENT,
145
  `uid` int(11) NOT NULL,
146
  `post` text NOT NULL,
147
  `posted` varchar(30) NOT NULL,
148
  `privacy` varchar(3) NOT NULL DEFAULT 'p',
149
  `likes` int(11) NOT NULL DEFAULT '0',
150
  `cmts` int(11) NOT NULL DEFAULT '0',
151
  PRIMARY KEY (`id`)
152
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=127 ;
153
154
-- --------------------------------------------------------
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+
  `hits` int(11) NOT NULL
163-
  FULLTEXT KEY `post` (`post`),
163+
164-
  FULLTEXT KEY `posted_3` (`posted`),
164+
165-
  FULLTEXT KEY `privacy_2` (`privacy`)
165+
166-
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=175 ;
166+
167
--
168
-- Table structure for table `users`
169
--
170
171
CREATE TABLE IF NOT EXISTS `users` (
172
  `id` int(11) NOT NULL AUTO_INCREMENT,
173
  `username` text NOT NULL,
174
  `password` text NOT NULL,
175
  `psalt` text NOT NULL,
176-
  `hits` int(11) NOT NULL,
176+
177-
  PRIMARY KEY (`title`),
177+
178-
  UNIQUE KEY `title` (`title`),
178+
  `seen` varchar(20) NOT NULL,
179-
  KEY `title_2` (`title`),
179+
  PRIMARY KEY (`id`)
180-
  KEY `hits` (`hits`),
180+
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=227 ;
181-
  FULLTEXT KEY `title_3` (`title`)
181+
182
-- --------------------------------------------------------
183
184
--
185
-- Table structure for table `verify`
186
--
187
188
CREATE TABLE IF NOT EXISTS `verify` (
189
  `uid` int(11) NOT NULL,
190
  `code` varchar(35) NOT NULL,
191
  `posted` varchar(20) NOT NULL
192
) ENGINE=MyISAM DEFAULT CHARSET=utf8;