From 58f1532c81cfd7015e3cdadabc0fd78f58defdac Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Mon, 2 Jan 2017 11:34:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B0=D0=BC=D0=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- btsearch.sql | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 btsearch.sql diff --git a/btsearch.sql b/btsearch.sql new file mode 100644 index 0000000..dbf435e --- /dev/null +++ b/btsearch.sql @@ -0,0 +1,82 @@ +-- MySQL dump 10.16 Distrib 10.1.16-MariaDB, for Win64 (AMD64) +-- +-- Host: localhost Database: btsearch +-- ------------------------------------------------------ +-- Server version 10.1.16-MariaDB + +/*!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 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `files` +-- + +DROP TABLE IF EXISTS `files`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `files` ( + `hash` char(40) DEFAULT NULL, + `path` text, + `size` bigint(20) unsigned DEFAULT NULL, + KEY `hash` (`hash`), + FULLTEXT KEY `file_name` (`path`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `files` +-- + +LOCK TABLES `files` WRITE; +/*!40000 ALTER TABLE `files` DISABLE KEYS */; +/*!40000 ALTER TABLE `files` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `torrents` +-- + +DROP TABLE IF EXISTS `torrents`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `torrents` ( + `hash` char(40) NOT NULL, + `name` text, + `size` bigint(20) unsigned DEFAULT NULL, + `files` int(10) unsigned DEFAULT NULL, + `piecelength` int(10) unsigned DEFAULT NULL, + `added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + `ipv4` char(15) DEFAULT NULL, + `port` smallint(5) unsigned DEFAULT NULL, + PRIMARY KEY (`hash`), + FULLTEXT KEY `torrent_name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `torrents` +-- + +LOCK TABLES `torrents` WRITE; +/*!40000 ALTER TABLE `torrents` DISABLE KEYS */; +/*!40000 ALTER TABLE `torrents` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!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 */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2017-01-02 11:33:56