новая структура
This commit is contained in:
59
btsearch.sql
59
btsearch.sql
@ -1,8 +1,8 @@
|
||||
-- MySQL dump 10.16 Distrib 10.1.16-MariaDB, for Win64 (AMD64)
|
||||
-- MySQL dump 10.16 Distrib 10.1.20-MariaDB, for Linux (x86_64)
|
||||
--
|
||||
-- Host: localhost Database: btsearch
|
||||
-- Host: localhost Database: localhost
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 10.1.16-MariaDB
|
||||
-- Server version 10.1.20-MariaDB
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
@ -26,19 +26,25 @@ 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;
|
||||
`fileid` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`fileid`),
|
||||
KEY `hash` (`hash`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=13877634 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `files`
|
||||
-- Table structure for table `sphinx_counter`
|
||||
--
|
||||
|
||||
LOCK TABLES `files` WRITE;
|
||||
/*!40000 ALTER TABLE `files` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `files` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
DROP TABLE IF EXISTS `sphinx_counter`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `sphinx_counter` (
|
||||
`counter_id` int(11) NOT NULL,
|
||||
`max_doc_id` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`counter_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `statistic`
|
||||
@ -54,15 +60,6 @@ CREATE TABLE `statistic` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `statistic`
|
||||
--
|
||||
|
||||
LOCK TABLES `statistic` WRITE;
|
||||
/*!40000 ALTER TABLE `statistic` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `statistic` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `torrents`
|
||||
--
|
||||
@ -79,19 +76,17 @@ CREATE TABLE `torrents` (
|
||||
`added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`ipv4` char(15) DEFAULT NULL,
|
||||
`port` smallint(5) unsigned DEFAULT NULL,
|
||||
`contentType` enum('video','audio','pictures','books','application') DEFAULT NULL,
|
||||
`contentCategory` varchar(32) DEFAULT NULL,
|
||||
`seeders` int(10) unsigned DEFAULT NULL,
|
||||
`leechers` int(10) unsigned DEFAULT NULL,
|
||||
`completed` int(10) unsigned DEFAULT NULL,
|
||||
`torrentid` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (`hash`),
|
||||
FULLTEXT KEY `torrent_name` (`name`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
UNIQUE KEY `torrentid` (`torrentid`),
|
||||
KEY `added` (`added`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=389480 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 */;
|
||||
@ -102,4 +97,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-01-03 6:03:58
|
||||
-- Dump completed on 2017-01-10 10:11:50
|
||||
|
Reference in New Issue
Block a user