forked from sezarsaman/OcBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathocbq.sql
More file actions
87 lines (72 loc) · 1.99 KB
/
Copy pathocbq.sql
File metadata and controls
87 lines (72 loc) · 1.99 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
--
-- Table structure for table `oc_post`
--
DROP TABLE IF EXISTS `oc_post`;
CREATE TABLE `oc_post` (
`post_id` int(11) NOT NULL,
`sort_order` int(3) NOT NULL DEFAULT '0',
`date` date NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oc_post_description`
--
DROP TABLE IF EXISTS `oc_post_description`;
CREATE TABLE `oc_post_description` (
`post_id` int(11) NOT NULL,
`language_id` int(11) NOT NULL,
`title` varchar(256) NOT NULL,
`description` text NOT NULL,
`summary` text NOT NULL,
`meta_title` varchar(256) NOT NULL,
`meta_description` text NOT NULL,
`meta_keyword` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oc_post_image`
--
DROP TABLE IF EXISTS `oc_post_image`;
CREATE TABLE `oc_post_image` (
`post_image_id` int(11) NOT NULL,
`post_id` int(11) NOT NULL,
`image` varchar(255) NOT NULL,
`image_usage` varchar(255) NOT NULL,
`sort_order` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `oc_post`
--
ALTER TABLE `oc_post`
ADD PRIMARY KEY (`post_id`);
--
-- Indexes for table `oc_post_description`
--
ALTER TABLE `oc_post_description`
ADD PRIMARY KEY (`post_id`,`language_id`);
--
-- Indexes for table `oc_post_image`
--
ALTER TABLE `oc_post_image`
ADD PRIMARY KEY (`post_image_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `oc_post`
--
ALTER TABLE `oc_post`
MODIFY `post_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `oc_post_image`
--
ALTER TABLE `oc_post_image`
MODIFY `post_image_id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;