Хранилища Subversion www_nix-files

Сравнить редакции

Учитывать пробелы Редакция 13 → Редакция 11

/trunk/db/nix-files.sql
1,11 → 1,11
-- phpMyAdmin SQL Dump
-- version 2.11.8.1deb5+lenny1
-- version 3.2.1deb1
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Время создания: Сен 08 2009 г., 14:49
-- Версия сервера: 5.0.51
-- Версия PHP: 5.2.6-1+lenny3
-- Время создания: Авг 31 2009 г., 23:53
-- Версия сервера: 5.1.37
-- Версия PHP: 5.2.10-2ubuntu2
 
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
 
27,10 → 27,10
 
DROP TABLE IF EXISTS `apt_mirrors`;
CREATE TABLE IF NOT EXISTS `apt_mirrors` (
`id` int(5) NOT NULL auto_increment,
`src_name` varchar(50) collate utf8_unicode_ci NOT NULL,
`src_url` varchar(50) collate utf8_unicode_ci NOT NULL,
`desk` varchar(50) collate utf8_unicode_ci NOT NULL,
`id` int(5) NOT NULL AUTO_INCREMENT,
`src_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`src_url` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`desk` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=17 ;
 
64,8 → 64,8
 
DROP TABLE IF EXISTS `categories`;
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(2) NOT NULL auto_increment,
`category` varchar(15) collate utf8_unicode_ci NOT NULL,
`id` int(2) NOT NULL AUTO_INCREMENT,
`category` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;
 
87,11 → 87,11
 
DROP TABLE IF EXISTS `details`;
CREATE TABLE IF NOT EXISTS `details` (
`id` int(2) NOT NULL auto_increment,
`title` varchar(50) collate utf8_unicode_ci NOT NULL,
`description` text collate utf8_unicode_ci NOT NULL,
`link` varchar(50) collate utf8_unicode_ci NOT NULL,
`talklink` varchar(50) collate utf8_unicode_ci NOT NULL,
`id` int(2) NOT NULL AUTO_INCREMENT,
`title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`link` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`talklink` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `resource_id` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
111,10 → 111,10
 
DROP TABLE IF EXISTS `members`;
CREATE TABLE IF NOT EXISTS `members` (
`id` int(2) NOT NULL auto_increment,
`nick` varchar(50) collate utf8_unicode_ci NOT NULL,
`avatar` varchar(50) collate utf8_unicode_ci NOT NULL,
`jabber` varchar(50) collate utf8_unicode_ci NOT NULL,
`id` int(2) NOT NULL AUTO_INCREMENT,
`nick` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`avatar` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`jabber` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`icq` int(15) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
140,9 → 140,9
 
DROP TABLE IF EXISTS `networks`;
CREATE TABLE IF NOT EXISTS `networks` (
`id` int(2) NOT NULL auto_increment,
`network` varchar(15) collate utf8_unicode_ci NOT NULL,
`link` varchar(50) collate utf8_unicode_ci NOT NULL,
`id` int(2) NOT NULL AUTO_INCREMENT,
`network` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
`link` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ;
 
165,12 → 165,12
 
DROP TABLE IF EXISTS `resources`;
CREATE TABLE IF NOT EXISTS `resources` (
`id` int(2) NOT NULL auto_increment,
`id` int(2) NOT NULL AUTO_INCREMENT,
`category_id` int(2) NOT NULL,
`resource` varchar(15) collate utf8_unicode_ci NOT NULL,
`picture` varchar(50) collate utf8_unicode_ci NOT NULL,
`link_talk` varchar(50) collate utf8_unicode_ci NOT NULL,
`link_res` varchar(50) collate utf8_unicode_ci NOT NULL,
`resource` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
`picture` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`link_talk` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`link_res` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `category_id` (`category_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ;
200,7 → 200,7
 
DROP TABLE IF EXISTS `res_mem_rank`;
CREATE TABLE IF NOT EXISTS `res_mem_rank` (
`id` int(5) NOT NULL auto_increment,
`id` int(5) NOT NULL AUTO_INCREMENT,
`resource_id` int(2) NOT NULL,
`network_id` int(2) NOT NULL,
`member_id` int(2) NOT NULL,
211,66 → 211,3
KEY `network_id` (`network_id`),
KEY `resource_id_2` (`resource_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=39 ;
 
--
-- Дамп данных таблицы `res_mem_rank`
--
 
 
-- --------------------------------------------------------
 
--
-- Структура таблицы `res_net_stat`
--
 
DROP TABLE IF EXISTS `res_net_stat`;
CREATE TABLE IF NOT EXISTS `res_net_stat` (
`id` int(5) NOT NULL auto_increment,
`resource_id` int(2) NOT NULL,
`network_id` int(2) NOT NULL,
`state_id` int(2) NOT NULL,
PRIMARY KEY (`id`),
KEY `resource_id` (`resource_id`,`network_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=37 ;
 
--
-- Дамп данных таблицы `res_net_stat`
--
 
INSERT INTO `res_net_stat` (`id`, `resource_id`, `network_id`, `state_id`) VALUES
(1, 1, 2, 1),
(2, 1, 3, 1),
(3, 1, 4, 4),
(4, 1, 5, 3),
(5, 2, 2, 2),
(6, 2, 3, 2),
(7, 2, 4, 4),
(8, 2, 5, 1),
(9, 3, 1, 1),
(10, 3, 2, 1),
(11, 3, 3, 2),
(12, 3, 5, 3),
(13, 4, 1, 1),
(14, 4, 2, 1),
(15, 4, 3, 2),
(16, 4, 5, 3),
(17, 5, 2, 1),
(18, 5, 3, 1),
(19, 5, 5, 2),
(20, 6, 2, 1),
(21, 6, 3, 1),
(22, 6, 5, 3),
(23, 7, 2, 1),
(24, 7, 3, 1),
(25, 7, 5, 3),
(26, 8, 2, 1),
(27, 8, 3, 1),
(28, 8, 5, 3),
(29, 9, 2, 1),
(30, 9, 3, 1),
(31, 9, 5, 2),
(32, 10, 1, 1),
(33, 10, 2, 1),
(34, 10, 3, 2),
(35, 10, 5, 3),
(36, 11, 1, 1);