Changeset 37 for branches


Ignore:
Timestamp:
Nov 25, 2008, 3:36:49 PM (16 years ago)
Author:
maron
Message:

struktura a data

Location:
branches/2/sql
Files:
2 edited

Legend:

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

    r5 r37  
    11-- phpMyAdmin SQL Dump
    2 -- version 2.10.2
     2-- version 2.9.1.1
    33-- http://www.phpmyadmin.net
    44--
    5 -- 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
    9 
    10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    11 
     5-- Host: localhost
     6-- Generation Time: Oct 13, 2008 at 07:51 PM
     7-- Server version: 5.0.67
     8-- PHP Version: 5.2.0
    129--
    13 -- Databáze: `wowpreklad`
     10-- Database: `wowpreklad`
    1411--
    1512
     
    1714
    1815--
    19 -- Struktura tabulky `Language`
     16-- Table structure for table `language`
    2017--
    2118
    22 CREATE TABLE `Language` (
     19CREATE TABLE `language` (
    2320  `Id` int(11) NOT NULL auto_increment,
    2421  `Name` varchar(64) collate utf8_czech_ci NOT NULL,
     
    2926
    3027--
    31 -- Struktura tabulky `Permission`
     28-- Table structure for table `permission`
    3229--
    3330
    34 CREATE TABLE `Permission` (
     31CREATE TABLE `permission` (
    3532  `Id` int(11) NOT NULL auto_increment,
    3633  `Title` varchar(64) collate utf8_czech_ci NOT NULL,
     
    4138
    4239--
    43 -- Struktura tabulky `Text`
     40-- Table structure for table `text`
    4441--
    4542
    46 CREATE TABLE `Text` (
     43CREATE TABLE `text` (
    4744  `Id` int(11) NOT NULL auto_increment,
    4845  `TranslationGroup` int(11) NOT NULL,
     
    5653
    5754--
    58 -- Struktura tabulky `TextGroup`
     55-- Table structure for table `textgroup`
    5956--
    6057
    61 CREATE TABLE `TextGroup` (
     58CREATE TABLE `textgroup` (
    6259  `Id` int(11) NOT NULL auto_increment,
    6360  `Group` int(11) NOT NULL,
     
    7471
    7572--
    76 -- Struktura tabulky `Translation`
     73-- Table structure for table `translation`
    7774--
    7875
    79 CREATE TABLE `Translation` (
     76CREATE TABLE `translation` (
    8077  `Id` int(11) NOT NULL auto_increment,
    8178  `Group` int(11) NOT NULL,
     
    8885
    8986--
    90 -- Struktura tabulky `TranslationGroup`
     87-- Table structure for table `translationgroup`
    9188--
    9289
    93 CREATE TABLE `TranslationGroup` (
     90CREATE TABLE `translationgroup` (
    9491  `Id` int(11) NOT NULL auto_increment,
    9592  `Name` varchar(64) collate utf8_czech_ci NOT NULL,
     
    10299
    103100--
    104 -- Struktura tabulky `User`
     101-- Table structure for table `user`
    105102--
    106103
    107 CREATE TABLE `User` (
     104CREATE TABLE `user` (
    108105  `Id` int(11) NOT NULL auto_increment,
    109106  `Name` varchar(64) collate utf8_czech_ci NOT NULL,
     
    111108  `Email` varchar(128) collate utf8_czech_ci NOT NULL,
    112109  `Permission` int(11) NOT NULL,
    113   `LastIpAddress` varchar(16) collate utf8_czech_ci NOT NULL,
     110  `LastIpAddress` varchar(255) collate utf8_czech_ci NOT NULL,
    114111  `LastLoginTime` datetime NOT NULL,
    115112  `TranslationLanguage` int(11) NOT NULL,
    116113  `FullName` varchar(128) collate utf8_czech_ci NOT NULL,
    117114  PRIMARY KEY  (`Id`)
    118 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=2 ;
     115) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=4 ;
    119116
    120117-- --------------------------------------------------------
    121118
    122119--
    123 -- Struktura tabulky `UserOnline`
     120-- Table structure for table `useronline`
    124121--
    125122
    126 CREATE TABLE `UserOnline` (
     123CREATE TABLE `useronline` (
    127124  `User` int(11) NOT NULL,
    128125  `Time` datetime NOT NULL,
    129126  `SessionId` varchar(255) collate utf8_czech_ci NOT NULL,
    130   `IpAddress` varchar(16) collate utf8_czech_ci NOT NULL,
    131   PRIMARY KEY  (`User`)
     127  `IpAddress` varchar(255) collate utf8_czech_ci NOT NULL,
     128  UNIQUE KEY `SessionId` (`SessionId`)
    132129) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
    133130
     
    135132
    136133--
    137 -- Struktura tabulky `Vote`
     134-- Table structure for table `vote`
    138135--
    139136
    140 CREATE TABLE `Vote` (
     137CREATE TABLE `vote` (
    141138  `TranslationGroup` int(11) NOT NULL,
    142139  `User` int(11) NOT NULL,
  • branches/2/sql/init_data.sql

    r5 r37  
    11-- phpMyAdmin SQL Dump
    2 -- version 2.10.2
     2-- version 2.10.2 
    33-- http://www.phpmyadmin.net
    44--
Note: See TracChangeset for help on using the changeset viewer.