mirror of https://github.com/rusefi/msqur.git
64 lines
2.0 KiB
SQL
64 lines
2.0 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 4.1.14
|
|
-- http://www.phpmyadmin.net
|
|
--
|
|
-- Host: 127.0.0.1
|
|
-- Generation Time: Oct 18, 2014 at 03:45 AM
|
|
-- Server version: 5.6.17
|
|
-- PHP Version: 5.5.12
|
|
|
|
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 utf8 */;
|
|
|
|
--
|
|
-- Database: `msqur`
|
|
--
|
|
CREATE DATABASE IF NOT EXISTS `msqur` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
|
USE `msqur`;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `metadata`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `metadata`;
|
|
CREATE TABLE IF NOT EXISTS `metadata` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`url` varchar(6) COLLATE utf8_unicode_ci NOT NULL,
|
|
`msq` int(11) NOT NULL,
|
|
`fileFormat` decimal(10,0) NOT NULL,
|
|
`firmwareInfo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
`signature` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
|
`author` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
`tuneComment` text COLLATE utf8_unicode_ci,
|
|
`writeDate` datetime DEFAULT NULL,
|
|
`uploadDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `msq` (`msq`),
|
|
UNIQUE KEY `url` (`url`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ;
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `msqs`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `msqs`;
|
|
CREATE TABLE IF NOT EXISTS `msqs` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`xml` mediumtext COLLATE utf8_unicode_ci NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=10 ;
|
|
|
|
/*!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 */;
|