новая структура

This commit is contained in:
Alexey Kasyanchuk
2017-01-10 13:13:05 +03:00
parent c08c98188c
commit 977b2c513b

View File

@ -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_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@ -26,19 +26,25 @@ CREATE TABLE `files` (
`hash` char(40) DEFAULT NULL, `hash` char(40) DEFAULT NULL,
`path` text, `path` text,
`size` bigint(20) unsigned DEFAULT NULL, `size` bigint(20) unsigned DEFAULT NULL,
KEY `hash` (`hash`), `fileid` int(10) unsigned NOT NULL AUTO_INCREMENT,
FULLTEXT KEY `file_name` (`path`) PRIMARY KEY (`fileid`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8; KEY `hash` (`hash`)
) ENGINE=InnoDB AUTO_INCREMENT=13877634 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
-- --
-- Dumping data for table `files` -- Table structure for table `sphinx_counter`
-- --
LOCK TABLES `files` WRITE; DROP TABLE IF EXISTS `sphinx_counter`;
/*!40000 ALTER TABLE `files` DISABLE KEYS */; /*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40000 ALTER TABLE `files` ENABLE KEYS */; /*!40101 SET character_set_client = utf8 */;
UNLOCK TABLES; 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` -- Table structure for table `statistic`
@ -54,15 +60,6 @@ CREATE TABLE `statistic` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */; /*!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` -- Table structure for table `torrents`
-- --
@ -79,19 +76,17 @@ CREATE TABLE `torrents` (
`added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ipv4` char(15) DEFAULT NULL, `ipv4` char(15) DEFAULT NULL,
`port` smallint(5) unsigned 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`), PRIMARY KEY (`hash`),
FULLTEXT KEY `torrent_name` (`name`) UNIQUE KEY `torrentid` (`torrentid`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8; KEY `added` (`added`)
) ENGINE=InnoDB AUTO_INCREMENT=389480 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */; /*!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 */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
@ -102,4 +97,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!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