forked from pulsir/pulsir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable_creator.sql
43 lines (34 loc) · 1.76 KB
/
table_creator.sql
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
CREATE TABLE IF NOT EXISTS `cms_content` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(280) NOT NULL,
`body` longtext CHARACTER SET utf8 COLLATE utf8_slovenian_ci NOT NULL,
`author` text NOT NULL,
`approved` text NOT NULL,
`tags` varchar(24) NOT NULL,
`private` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=425 ;
CREATE TABLE IF NOT EXISTS `tblUser` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`pname` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`sidebar` text COLLATE utf8_unicode_ci NOT NULL,
`gravatar` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`cucss` text COLLATE utf8_unicode_ci NOT NULL,
`group` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`profile_url` varchar(1024) COLLATE utf8_unicode_ci NOT NULL,
`rpt` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=41 ;
INSERT INTO `tblUser` (`id`, `username`, `password`, `email`, `pname`, `sidebar`, `gravatar`, `cucss`, `group`, `profile_url`, `rpt`) VALUES
(2, 'admin', '956xkFuvbOmIw', 'admin@localhost', 'localhost', '', 'admin@localhost', '', 'moderators', 'http://localhost/admin', '');
CREATE TABLE IF NOT EXISTS `tblInvites` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`hash` varchar(750) COLLATE utf8_unicode_ci NOT NULL,
`username` varchar(300) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;
INSERT INTO `tblInvites` (`id`, `hash`, `username`) VALUES
(4, 'sampleinvite', '');