Changeset 63 for branches/2/sql/full.sql


Ignore:
Timestamp:
Feb 5, 2009, 8:30:59 AM (16 years ago)
Author:
george
Message:
  • Upraveno: Ukládání hesla nyní v kódované podobě pomocí hašovací funkce sha1.
  • Opraveno: Některé normálně nezobrazované chyby v inicializaci proměnných.
  • Upraveno: Informace o překladu byly z úvodní stránky přesunuty do stránky Informace dostupné z menu.
  • Přidáno: Na hlavní stránku přidány jednoduché aktuality o systému.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2/sql/full.sql

    r40 r63  
    11-- phpMyAdmin SQL Dump
    2 -- version 2.10.2
     2-- version 3.1.2
    33-- http://www.phpmyadmin.net
    4 -- 
     4--
    55-- Počítač: localhost
    6 -- Vygenerováno: Čtvrtek 08. května 2008, 19:59
    7 -- Verze MySQL: 5.0.45
    8 -- Verze PHP: 5.2.4
     6-- Vygenerováno: Čtvrtek 05. února 2009, 06:45
     7-- Verze MySQL: 5.0.67
     8-- Verze PHP: 5.2.6
    99
    1010SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    1111
    12 -- 
     12--
    1313-- Databáze: `wowpreklad`
    14 -- 
     14--
    1515
    1616-- --------------------------------------------------------
    1717
    18 -- 
     18--
    1919-- Struktura tabulky `Language`
    20 -- 
     20--
    2121
    22 CREATE TABLE `Language` (
     22CREATE TABLE IF NOT EXISTS `Language` (
    2323  `Id` int(11) NOT NULL auto_increment,
    2424  `Name` varchar(64) collate utf8_czech_ci NOT NULL,
     
    2828-- --------------------------------------------------------
    2929
    30 -- 
    31 -- Struktura tabulky `Permission`
    32 -- 
     30--
     31-- Struktura tabulky `PermissionOperation`
     32--
    3333
    34 CREATE TABLE `Permission` (
     34CREATE TABLE IF NOT EXISTS `PermissionOperation` (
    3535  `Id` int(11) NOT NULL auto_increment,
    36   `Title` varchar(64) collate utf8_czech_ci NOT NULL,
     36  `Description` varchar(128) collate utf8_czech_ci NOT NULL,
    3737  PRIMARY KEY  (`Id`)
    38 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=5 ;
     38) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=10 ;
    3939
    4040-- --------------------------------------------------------
    4141
    42 -- 
     42--
    4343-- Struktura tabulky `Text`
    44 -- 
     44--
    4545
    46 CREATE TABLE `Text` (
     46CREATE TABLE IF NOT EXISTS `Text` (
    4747  `Id` int(11) NOT NULL auto_increment,
    4848  `TranslationGroup` int(11) NOT NULL,
     
    5151  PRIMARY KEY  (`Id`),
    5252  KEY `TranslationGroup` (`TranslationGroup`,`GroupItem`)
    53 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=113390 ;
     53) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=427992 ;
    5454
    5555-- --------------------------------------------------------
    5656
    57 -- 
     57--
    5858-- Struktura tabulky `TextGroup`
    59 -- 
     59--
    6060
    61 CREATE TABLE `TextGroup` (
     61CREATE TABLE IF NOT EXISTS `TextGroup` (
    6262  `Id` int(11) NOT NULL auto_increment,
    6363  `Group` int(11) NOT NULL,
     
    6767  `Time` datetime NOT NULL,
    6868  `Revision` int(11) NOT NULL,
     69  `Complete` tinyint(1) NOT NULL,
     70  `OriginalText` int(11) NOT NULL,
     71  `OldSystem` tinyint(1) NOT NULL,
    6972  PRIMARY KEY  (`Id`),
    7073  UNIQUE KEY `Group` (`Group`,`User`,`Index`,`Language`)
    71 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=358575 ;
     74) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=256750 ;
    7275
    7376-- --------------------------------------------------------
    7477
    75 -- 
     78--
    7679-- Struktura tabulky `Translation`
    77 -- 
     80--
    7881
    79 CREATE TABLE `Translation` (
     82CREATE TABLE IF NOT EXISTS `Translation` (
    8083  `Id` int(11) NOT NULL auto_increment,
    8184  `Group` int(11) NOT NULL,
     
    8790-- --------------------------------------------------------
    8891
    89 -- 
     92--
    9093-- Struktura tabulky `TranslationGroup`
    91 -- 
     94--
    9295
    93 CREATE TABLE `TranslationGroup` (
     96CREATE TABLE IF NOT EXISTS `TranslationGroup` (
    9497  `Id` int(11) NOT NULL auto_increment,
    9598  `Name` varchar(64) collate utf8_czech_ci NOT NULL,
     
    101104-- --------------------------------------------------------
    102105
    103 -- 
     106--
    104107-- Struktura tabulky `User`
    105 -- 
     108--
    106109
    107 CREATE TABLE `User` (
     110CREATE TABLE IF NOT EXISTS `User` (
    108111  `Id` int(11) NOT NULL auto_increment,
    109112  `Name` varchar(64) collate utf8_czech_ci NOT NULL,
    110113  `Password` varchar(64) collate utf8_czech_ci NOT NULL,
    111114  `Email` varchar(128) collate utf8_czech_ci NOT NULL,
    112   `Permission` int(11) NOT NULL,
     115  `Role` int(11) NOT NULL,
    113116  `LastIpAddress` varchar(16) collate utf8_czech_ci NOT NULL,
    114117  `LastLoginTime` datetime NOT NULL,
     
    116119  `FullName` varchar(128) collate utf8_czech_ci NOT NULL,
    117120  PRIMARY KEY  (`Id`)
    118 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=2 ;
     121) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=319 ;
    119122
    120123-- --------------------------------------------------------
    121124
    122 -- 
     125--
    123126-- Struktura tabulky `UserOnline`
    124 -- 
     127--
    125128
    126 CREATE TABLE `UserOnline` (
     129CREATE TABLE IF NOT EXISTS `UserOnline` (
    127130  `User` int(11) NOT NULL,
    128131  `Time` datetime NOT NULL,
    129132  `SessionId` varchar(255) collate utf8_czech_ci NOT NULL,
    130   `IpAddress` varchar(16) collate utf8_czech_ci NOT NULL,
     133  `HostAddress` varchar(255) collate utf8_czech_ci NOT NULL,
    131134  PRIMARY KEY  (`User`)
    132135) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
     
    134137-- --------------------------------------------------------
    135138
    136 --
     139--
     140-- Struktura tabulky `UserRole`
     141--
     142
     143CREATE TABLE IF NOT EXISTS `UserRole` (
     144  `Id` int(11) NOT NULL auto_increment,
     145  `Title` varchar(64) collate utf8_czech_ci NOT NULL,
     146  PRIMARY KEY  (`Id`)
     147) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=5 ;
     148
     149-- --------------------------------------------------------
     150
     151--
     152-- Struktura tabulky `UserRolePermission`
     153--
     154
     155CREATE TABLE IF NOT EXISTS `UserRolePermission` (
     156  `Role` int(11) NOT NULL,
     157  `Operation` int(11) NOT NULL,
     158  `Read` tinyint(1) NOT NULL,
     159  `Write` tinyint(1) NOT NULL,
     160  PRIMARY KEY  (`Role`,`Operation`)
     161) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
     162
     163-- --------------------------------------------------------
     164
     165--
    137166-- Struktura tabulky `Vote`
    138 -- 
     167--
    139168
    140 CREATE TABLE `Vote` (
     169CREATE TABLE IF NOT EXISTS `Vote` (
    141170  `TranslationGroup` int(11) NOT NULL,
    142171  `User` int(11) NOT NULL,
Note: See TracChangeset for help on using the changeset viewer.