mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-07-12 03:46:15 +00:00
Moving all files out of unnecessary subfolder
This commit is contained in:
124
scripts/init.sql
Normal file
124
scripts/init.sql
Normal file
@@ -0,0 +1,124 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.5.1
|
||||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Mar 08, 2016 at 05:16 AM
|
||||
-- Server version: 10.1.10-MariaDB
|
||||
-- PHP Version: 7.0.2
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
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 */;
|
||||
|
||||
--
|
||||
-- Database: `wod`
|
||||
--
|
||||
CREATE DATABASE IF NOT EXISTS `wod` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
|
||||
USE `wod`;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `checksums`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `checksums`;
|
||||
CREATE TABLE IF NOT EXISTS `checksums` (
|
||||
`file` int(11) NOT NULL,
|
||||
`size` int(11) NOT NULL,
|
||||
`crc` varchar(8) NOT NULL,
|
||||
`md5` varchar(32) NOT NULL,
|
||||
`sha1` varchar(40) NOT NULL,
|
||||
PRIMARY KEY (`file`,`size`,`crc`,`md5`,`sha1`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `files`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `files`;
|
||||
CREATE TABLE IF NOT EXISTS `files` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`setid` int(11) NOT NULL,
|
||||
`name` varchar(30000) NOT NULL,
|
||||
`type` varchar(10) NOT NULL DEFAULT 'rom',
|
||||
`lastupdated` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`),
|
||||
KEY `FK_games_files_Cascade` (`setid`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=42824 DEFAULT CHARSET=latin1;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `games`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `games`;
|
||||
CREATE TABLE IF NOT EXISTS `games` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`system` int(11) NOT NULL,
|
||||
`name` varchar(30000) NOT NULL,
|
||||
`parent` int(11) NOT NULL DEFAULT '0',
|
||||
`source` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=22535 DEFAULT CHARSET=latin1;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `parent`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `parent`;
|
||||
CREATE TABLE IF NOT EXISTS `parent` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(1024) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `sources`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `sources`;
|
||||
CREATE TABLE IF NOT EXISTS `sources` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(767) NOT NULL,
|
||||
`url` longtext NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`),
|
||||
UNIQUE KEY `name` (`name`),
|
||||
KEY `name_2` (`name`),
|
||||
KEY `name_3` (`name`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=208 DEFAULT CHARSET=latin1;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `systems`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `systems`;
|
||||
CREATE TABLE IF NOT EXISTS `systems` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`manufacturer` varchar(1024) NOT NULL,
|
||||
`system` varchar(1024) NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=431 DEFAULT CHARSET=latin1;
|
||||
|
||||
/*!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 */;
|
||||
Reference in New Issue
Block a user