Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Commit 32e65ee

Browse files
committed
更新数据表结构
1 parent 06042b7 commit 32e65ee

File tree

1 file changed

+55
-8
lines changed

1 file changed

+55
-8
lines changed

install/tables.sql

+55-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
-- phpMyAdmin SQL Dump
2-
-- version 3.2.0.1
2+
-- version 4.0.7
33
-- http://www.phpmyadmin.net
44
--
55
-- 主机: localhost
6-
-- 生成日期: 2014 年 04 月 18 日 02:18
7-
-- 服务器版本: 5.1.36
8-
-- PHP 版本: 5.2.11
6+
-- 生成日期: 2014-07-06 11:20:07
7+
-- 服务器版本: 5.5.34-log
8+
-- PHP 版本: 5.3.27
99

10-
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
10+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
SET time_zone = "+00:00";
12+
13+
14+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17+
/*!40101 SET NAMES utf8 */;
1118

1219
--
1320
-- 数据库: `peento`
@@ -46,7 +53,7 @@ CREATE TABLE IF NOT EXISTS `article_list` (
4653
KEY `updated_at` (`updated_at`),
4754
KEY `is_removed` (`is_removed`),
4855
KEY `sort` (`sort`)
49-
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
56+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
5057

5158
-- --------------------------------------------------------
5259

@@ -80,6 +87,27 @@ CREATE TABLE IF NOT EXISTS `article_tag` (
8087

8188
-- --------------------------------------------------------
8289

90+
--
91+
-- 表的结构 `comment_list`
92+
--
93+
94+
CREATE TABLE IF NOT EXISTS `comment_list` (
95+
`id` int(11) NOT NULL AUTO_INCREMENT,
96+
`article_id` int(11) NOT NULL,
97+
`name` varchar(50) NOT NULL,
98+
`email` varchar(255) NOT NULL,
99+
`content` text NOT NULL,
100+
`created_at` int(11) NOT NULL,
101+
`is_removed` tinyint(4) NOT NULL,
102+
PRIMARY KEY (`id`),
103+
KEY `article_id` (`article_id`),
104+
KEY `email` (`email`),
105+
KEY `created_at` (`created_at`),
106+
KEY `is_removed` (`is_removed`)
107+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
108+
109+
-- --------------------------------------------------------
110+
83111
--
84112
-- 表的结构 `config`
85113
--
@@ -92,6 +120,21 @@ CREATE TABLE IF NOT EXISTS `config` (
92120

93121
-- --------------------------------------------------------
94122

123+
--
124+
-- 表的结构 `nav_list`
125+
--
126+
127+
CREATE TABLE IF NOT EXISTS `nav_list` (
128+
`name` varchar(255) NOT NULL,
129+
`type` int(11) NOT NULL,
130+
`parent` varchar(255) NOT NULL,
131+
`title` varchar(255) NOT NULL,
132+
`url` text NOT NULL,
133+
`sort` int(11) NOT NULL
134+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
135+
136+
-- --------------------------------------------------------
137+
95138
--
96139
-- 表的结构 `tag_list`
97140
--
@@ -101,7 +144,7 @@ CREATE TABLE IF NOT EXISTS `tag_list` (
101144
`name` varchar(255) NOT NULL,
102145
PRIMARY KEY (`id`),
103146
KEY `name` (`name`)
104-
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
147+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
105148

106149
-- --------------------------------------------------------
107150

@@ -116,4 +159,8 @@ CREATE TABLE IF NOT EXISTS `user_list` (
116159
`display_name` varchar(50) NOT NULL,
117160
PRIMARY KEY (`id`),
118161
UNIQUE KEY `email` (`email`)
119-
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
162+
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
163+
164+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
165+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
166+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 commit comments

Comments
 (0)