Last active
August 24, 2018 17:57
-
-
Save ddarkr/68f66c104233e99c0a62d8ab80ac5e96 to your computer and use it in GitHub Desktop.
James: Wiki Engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- phpMyAdmin SQL Dump | |
-- version 4.8.2 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: localhost | |
-- 생성 시간: 18-08-24 23:33 | |
-- 서버 버전: 10.3.8-MariaDB-1:10.3.8+maria~xenial-log | |
-- PHP 버전: 7.2.8-1+ubuntu18.04.1+deb.sury.org+1 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
SET AUTOCOMMIT = 0; | |
START TRANSACTION; | |
SET time_zone = "+00:00"; | |
/*!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 utf8mb4 */; | |
-- | |
-- 데이터베이스: `w_james` | |
-- | |
-- -------------------------------------------------------- | |
-- | |
-- 테이블 구조 `document` | |
-- | |
CREATE TABLE `document` ( | |
`id` int(11) NOT NULL, | |
`namespace` int(11) NOT NULL DEFAULT 0, | |
`title` text COLLATE utf8mb4_unicode_ci NOT NULL, | |
`content` text COLLATE utf8mb4_unicode_ci NOT NULL, | |
`last_modify` datetime NOT NULL DEFAULT current_timestamp() | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | |
-- -------------------------------------------------------- | |
-- | |
-- 테이블 구조 `namespace` | |
-- | |
CREATE TABLE `namespace` ( | |
`ns_id` int(11) NOT NULL, | |
`name` text COLLATE utf8mb4_unicode_ci NOT NULL, | |
`date` datetime NOT NULL DEFAULT current_timestamp() | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | |
-- -------------------------------------------------------- | |
-- | |
-- 테이블 구조 `users` | |
-- | |
CREATE TABLE `users` ( | |
`id` int(11) NOT NULL, | |
`username` varchar(55) COLLATE utf8mb4_unicode_ci NOT NULL, | |
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
`password` text COLLATE utf8mb4_unicode_ci NOT NULL, | |
`date` datetime NOT NULL DEFAULT current_timestamp() | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | |
-- | |
-- 덤프된 테이블의 인덱스 | |
-- | |
-- | |
-- 테이블의 인덱스 `document` | |
-- | |
ALTER TABLE `document` | |
ADD PRIMARY KEY (`id`); | |
-- | |
-- 테이블의 인덱스 `namespace` | |
-- | |
ALTER TABLE `namespace` | |
ADD PRIMARY KEY (`ns_id`), | |
ADD UNIQUE KEY `ns_id` (`ns_id`); | |
-- | |
-- 테이블의 인덱스 `users` | |
-- | |
ALTER TABLE `users` | |
ADD PRIMARY KEY (`id`), | |
ADD UNIQUE KEY `username` (`username`), | |
ADD UNIQUE KEY `email` (`email`); | |
-- | |
-- 덤프된 테이블의 AUTO_INCREMENT | |
-- | |
-- | |
-- 테이블의 AUTO_INCREMENT `document` | |
-- | |
ALTER TABLE `document` | |
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | |
-- | |
-- 테이블의 AUTO_INCREMENT `users` | |
-- | |
ALTER TABLE `users` | |
MODIFY `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 */; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* James: Wiki Engine | |
* | |
* 현재 James 위키 엔진은 개발 중인 위키 엔진입니다. | |
* 실 서비스에서 발생하는 문제는 책임지지 않습니다. | |
* | |
* Git Repository : https://github.com/CielLabs/James | |
*/ | |
// Database Configuration | |
$wikiDB = array( | |
'hostname' => 'localhost', // DB Connection 주소 | |
'username' => '', // 사용자 이름 | |
'password' => '', // 비밀번호 | |
'dbname' => 'w_james', // 데이터베이스 명 | |
); | |
// Default Configuration | |
$wikiName = ''; // 위키 이름 | |
$wikiMainPage = ''; // 대문 명 | |
$wikiSkin = ''; // 스킨 이름 | |
// License Configuration | |
$wikiLicense = ''; // 라이선스 명 (CC BY-SA 4.0) | |
$wikiLicenseUrl = ''; // 라이선스로 가는 주소 (https://www.google.co.kr/search?q=CC_BY-SA_4.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment