-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreviews_table.sql
35 lines (32 loc) · 1.16 KB
/
reviews_table.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
DROP TABLE IF EXISTS `article_reviews`;
CREATE TABLE `article_reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`article_id` int(11) NOT NULL,
`comments` text,
`display` int(1) DEFAULT '1',
`display_email_address` int(1) DEFAULT '0',
`coltime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`pagetype` varchar(15) NOT NULL DEFAULT 'article',
PRIMARY KEY (`id`)
);
DROP TABLE IF EXISTS `product_reviews`;
CREATE TABLE `product_reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL,
`comments` text,
`display` int(1) DEFAULT '1',
`display_email_address` int(1) DEFAULT '0',
`coltime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`pagetype` varchar(15) NOT NULL DEFAULT 'article',
PRIMARY KEY (`id`)
);
DROP TABLE IF EXISTS `feedback_new`;
CREATE TABLE `feedback_new` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`comments` text,
`display` int(1) DEFAULT '1',
`display_email_address` int(1) DEFAULT '0',
`coltime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`pagetype` varchar(15) NOT NULL DEFAULT 'article',
PRIMARY KEY (`id`)
);