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

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

Не учитывать пробелы Редакция 16 → Редакция 17

/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
-- Время создания: Сен 27 2009 г., 10:40
-- Версия сервера: 5.0.51
-- Версия PHP: 5.2.6-1+lenny3
-- Время создания: Сен 27 2009 г., 11:58
-- Версия сервера: 5.1.37
-- Версия PHP: 5.2.10-2ubuntu4
 
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
 
27,11 → 27,11
 
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,
PRIMARY KEY (`id`)
`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,9 → 64,9
 
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,
PRIMARY KEY (`id`)
`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 ;
 
--
82,41 → 82,17
-- --------------------------------------------------------
 
--
-- Структура таблицы `details`
--
 
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,
PRIMARY KEY (`id`),
KEY `resource_id` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
 
--
-- Дамп данных таблицы `details`
--
 
INSERT INTO `details` (`id`, `title`, `description`, `link`, `talklink`) VALUES
(1, 'ftp.niX-FILES', 'Файлопомойко', 'ftp://ftp.nix-files.org.ru', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1846');
 
-- --------------------------------------------------------
 
--
-- Структура таблицы `members`
--
 
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`)
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
 
--
140,10 → 116,10
 
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,
PRIMARY KEY (`id`)
`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=8 ;
 
--
167,13 → 143,14
 
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,
PRIMARY KEY (`id`),
`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,
`description` varchar(150) 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 ;
 
181,18 → 158,18
-- Дамп данных таблицы `resources`
--
 
INSERT INTO `resources` (`id`, `category_id`, `resource`, `picture`, `link_talk`, `link_res`) VALUES
(1, 1, 'ftp', './img/logo/ftp.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1846', 'ftp://ftp.nix-files.org.ru'),
(2, 2, 'apt', './img/logo/debian.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1370', 'http://apt.nix-files.org.ru'),
(3, 3, 'dicts', './img/logo/kdict.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1432', 'http://dicts.nix-files.org.ru'),
(4, 3, 'mans', './img/logo/khelpcenter.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1449', 'http://mans.nix-files.org.ru'),
(5, 2, 'gentoo', './img/logo/gentoo.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1860', 'http://gentoo.nix-files.org.ru'),
(6, 2, 'mandriva', './img/logo/mandrake.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=2005', 'http://mandriva.nix-files.org.ru'),
(7, 2, 'arch', './img/logo/archlinux.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1884', 'http://arch.nix-files.org.ru'),
(8, 2, 'alt', './img/logo/altlinux.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=2009', 'http://alt.nix-files.org.ru'),
(9, 2, 'freebsd', './img/logo/freebsd.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1990', 'http://freebsd.nix-files.org.ru'),
(10, 4, 'www', './img/logo/www.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1858', 'http://www.nix-files.org.ru'),
(11, 4, 'fail', './img/logo/fail.png', '', 'http://fail.nix-files.org.ru');
INSERT INTO `resources` (`id`, `category_id`, `resource`, `picture`, `link_talk`, `link_res`, `description`) VALUES
(1, 1, 'ftp', './img/logo/ftp.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1846', 'ftp://ftp.nix-files.org.ru', 'Файлообменник *nix тематики (дистрибутивы, софт, медиафайлы).'),
(2, 2, 'apt', './img/logo/debian.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1370', 'http://apt.nix-files.org.ru', 'Зеркала apt-репозиториев (Debain, Ubuntu и др.)'),
(3, 3, 'dicts', './img/logo/kdict.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1432', 'http://dicts.nix-files.org.ru', 'Сервер со словарями. Доступен как по протоколу http, так и по протоколу dict (порт 2628).'),
(4, 3, 'mans', './img/logo/khelpcenter.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1449', 'http://mans.nix-files.org.ru', 'Онлайн просмотр манов. В основном маны русскоязычные.'),
(5, 2, 'gentoo', './img/logo/gentoo.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1860', 'http://gentoo.nix-files.org.ru', 'Актуальный срез "репозитория" Gentoo.'),
(6, 2, 'mandriva', './img/logo/mandrake.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=2005', 'http://mandriva.nix-files.org.ru', 'Зеркало репозитория Mandriva.'),
(7, 2, 'arch', './img/logo/archlinux.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1884', 'http://arch.nix-files.org.ru', 'Зеркало репозитория ArchLinux,(содержит core, current, extra, community, testing).'),
(8, 2, 'alt', './img/logo/altlinux.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=2009', 'http://alt.nix-files.org.ru', 'Зеркало репозитория AltLinux.'),
(9, 2, 'freebsd', './img/logo/freebsd.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1990', 'http://freebsd.nix-files.org.ru', 'Актуальный срез "репозитория" FreeBSD.'),
(10, 4, 'www', './img/logo/www.png', 'http://altlug.ru/phpbb/viewtopic.php?f=37&t=1858', 'http://www.nix-files.org.ru', 'Индексная страница со ссылками на ресурсы nix-files.'),
(11, 4, 'fail', './img/logo/fail.png', '', 'http://fail.nix-files.org.ru', 'Сайт-заглушка, отображаемый при попытке зайти на ресурс, который недоступен для данной сети.');
 
-- --------------------------------------------------------
 
202,12 → 179,12
 
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,
`rank_id` int(2) NOT NULL,
PRIMARY KEY (`id`),
PRIMARY KEY (`id`),
KEY `resource_id` (`rank_id`),
KEY `member_id` (`member_id`),
KEY `network_id` (`network_id`),
227,11 → 204,11
 
DROP TABLE IF EXISTS `res_net_stat`;
CREATE TABLE IF NOT EXISTS `res_net_stat` (
`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,
`state_id` int(2) NOT NULL,
PRIMARY KEY (`id`),
PRIMARY KEY (`id`),
KEY `resource_id` (`resource_id`,`network_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=47 ;
 
295,10 → 272,10
 
DROP TABLE IF EXISTS `states`;
CREATE TABLE IF NOT EXISTS `states` (
`id` int(3) NOT NULL auto_increment,
`id` int(3) NOT NULL AUTO_INCREMENT,
`image` varchar(50) NOT NULL,
`description` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
 
--