-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdxmp.sql
executable file
·76 lines (61 loc) · 2.14 KB
/
dxmp.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
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
-- phpMyAdmin SQL Dump
-- version 3.3.8
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 16, 2012 at 05:50 PM
-- Server version: 5.0.51
-- PHP Version: 5.4.6-1~dotdeb.0
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `dxmp`
--
-- --------------------------------------------------------
--
-- Table structure for table `content`
--
CREATE TABLE IF NOT EXISTS `content` (
`content_id` bigint(20) NOT NULL auto_increment,
`content_title` varchar(255) collate utf8_unicode_ci NOT NULL,
`content_perma` varchar(255) character set latin1 NOT NULL,
`content_body` text collate utf8_unicode_ci NOT NULL,
`content_date` int(10) NOT NULL,
`content_type` varchar(10) character set latin1 NOT NULL,
`content_parent` bigint(20) NOT NULL,
`content_meta` text collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`content_id`),
KEY `content_parent` (`content_parent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5934 ;
-- --------------------------------------------------------
--
-- Table structure for table `hits`
--
CREATE TABLE IF NOT EXISTS `hits` (
`content_id` bigint(20) NOT NULL,
`hit_ip` varchar(15) character set latin1 NOT NULL,
`hit_date` int(10) NOT NULL,
`hit_user` varchar(10) collate utf8_unicode_ci default NULL,
`hit_type` smallint(6) NOT NULL,
KEY `content_id` (`content_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tags`
--
CREATE TABLE IF NOT EXISTS `tags` (
`content_id` bigint(20) NOT NULL,
`tag_name` varchar(25) NOT NULL,
KEY `tag_content` (`content_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `hits`
--
ALTER TABLE `hits`
ADD CONSTRAINT `fk_content_id` FOREIGN KEY (`content_id`) REFERENCES `content` (`content_id`) ON DELETE CASCADE ON UPDATE CASCADE;