Changeset 7


Ignore:
Timestamp:
Jun 10, 2009, 8:17:20 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Počáteční struktura databáze.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/sql/full.sql

    r5 r7  
    44--
    55-- Počítač: localhost
    6 -- Vygenerováno: Úterý 09. června 2009, 09:32
     6-- Vygenerováno: Středa 10. června 2009, 19:29
    77-- Verze MySQL: 5.0.77
    88-- Verze PHP: 5.2.9
     
    1313-- Databáze: `wowhosting`
    1414--
     15
     16-- --------------------------------------------------------
     17
     18--
     19-- Struktura tabulky `Backup`
     20--
     21
     22CREATE TABLE IF NOT EXISTS `Backup` (
     23  `Id` int(11) NOT NULL auto_increment,
     24  `Server` int(11) NOT NULL,
     25  `Time` datetime NOT NULL,
     26  PRIMARY KEY  (`Id`)
     27) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
     28
     29--
     30-- Vypisuji data pro tabulku `Backup`
     31--
     32
    1533
    1634-- --------------------------------------------------------
     
    84102  `Emulator` int(11) NOT NULL,
    85103  PRIMARY KEY  (`Id`)
    86 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
     104) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
    87105
    88106--
     
    91109
    92110INSERT INTO `Database` (`Id`, `Name`, `Version`, `Revision`, `ScriptDev2Revision`, `ACIDRevision`, `SourceFileName`, `Emulator`) VALUES
    93 (1, 'UDB', '0.11.5', 380, 1012, 0, 'UDB_0.11.5_Core_7681_SD2_1012.sql', 1);
     111(1, 'UDB', '0.11.5', 371, 1012, 0, 'UDB_0.11.5_Core_7681_SD2_1012.sql', 1);
    94112
    95113-- --------------------------------------------------------
     
    131149  `ClientVersion` int(11) NOT NULL,
    132150  `Revision` int(11) NOT NULL,
    133   PRIMARY KEY  (`Id`)
    134 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
     151  `CommitHash` varchar(255) NOT NULL,
     152  `ScriptDev2PatchFileName` varchar(255) NOT NULL,
     153  `ScriptDev2Revision` int(11) NOT NULL,
     154  PRIMARY KEY  (`Id`)
     155) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
    135156
    136157--
     
    138159--
    139160
    140 INSERT INTO `Emulator` (`Id`, `Name`, `ClientVersion`, `Revision`) VALUES
    141 (1, 'MaNGOS', 6, 7681);
     161INSERT INTO `Emulator` (`Id`, `Name`, `ClientVersion`, `Revision`, `CommitHash`, `ScriptDev2PatchFileName`, `ScriptDev2Revision`) VALUES
     162(1, 'MaNGOS', 6, 7681, '1620b99f8c2d62d582011e757eb4dcf469f036ad', 'MaNGOS-7356-ScriptDev2.patch', 1012);
     163
     164-- --------------------------------------------------------
     165
     166--
     167-- Struktura tabulky `Log`
     168--
     169
     170CREATE TABLE IF NOT EXISTS `Log` (
     171  `Time` datetime NOT NULL default '0000-00-00 00:00:00',
     172  `User` int(11) NOT NULL default '0',
     173  `Module` varchar(64) character set utf8 NOT NULL,
     174  `Operation` varchar(255) character set utf8 NOT NULL,
     175  `Value` varchar(255) character set utf8 NOT NULL,
     176  KEY `Time` (`Time`)
     177) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;
     178
     179
    142180
    143181-- --------------------------------------------------------
     
    155193  `Database` int(11) NOT NULL,
    156194  `Motd` varchar(255) NOT NULL,
    157   PRIMARY KEY  (`Id`)
    158 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
     195  `Description` text NOT NULL,
     196  `Type` int(11) NOT NULL,
     197  `Homepage` varchar(255) NOT NULL,
     198  PRIMARY KEY  (`Id`)
     199) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
    159200
    160201--
     
    162203--
    163204
    164 INSERT INTO `Server` (`Id`, `Name`, `NetworkPortRealmd`, `NetworkPortWorldd`, `User`, `Database`, `Motd`) VALUES
    165 (1, 'Test', 3127, 8085, 2, 1, '');
     205INSERT INTO `Server` (`Id`, `Name`, `NetworkPortRealmd`, `NetworkPortWorldd`, `User`, `Database`, `Motd`, `Description`, `Type`, `Homepage`) VALUES
     206(1, 'Test 1', 3724, 8085, 2, 1, 'Vítejte na free WoW serveru', '', 0, '');
     207
    166208
    167209-- --------------------------------------------------------
     
    178220  `Server` int(11) NOT NULL,
    179221  `Executed` int(11) NOT NULL,
    180   PRIMARY KEY  (`Id`)
    181 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    182 
    183 --
    184 -- Vypisuji data pro tabulku `Task`
    185 --
     222  `Output` text NOT NULL,
     223  PRIMARY KEY  (`Id`)
     224) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
    186225
    187226
     
    202241  `RegistrationTime` datetime NOT NULL,
    203242  `Locked` int(11) NOT NULL,
    204   PRIMARY KEY  (`Id`)
    205 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
     243  `Role` int(11) NOT NULL,
     244  PRIMARY KEY  (`Id`)
     245) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
    206246
    207247--
     
    209249--
    210250
    211 INSERT INTO `User` (`Id`, `Name`, `Login`, `Password`, `Email`, `LastIpAddress`, `LastLoginTime`, `RegistrationTime`, `Locked`) VALUES
    212 (1, 'Anonym', 'anonymous', '711a5c2497eca9d90a9cb92c188c7f4b8a7bf672', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0),
    213 (2, 'Administrátor', 'admin', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'root@localhost', '192.168.0.3', '2009-06-08 20:56:51', '0000-00-00 00:00:00', 0);
     251INSERT INTO `User` (`Id`, `Name`, `Login`, `Password`, `Email`, `LastIpAddress`, `LastLoginTime`, `RegistrationTime`, `Locked`, `Role`) VALUES
     252(1, 'Anonym', 'anonymous', '711a5c2497eca9d90a9cb92c188c7f4b8a7bf672', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 1),
     253(2, 'Administrátor', 'admin', 'd033e22ae348aeb5660fc2140aec35850c4da997', 'root@localhost', '192.168.0.3', '2009-06-09 17:19:59', '0000-00-00 00:00:00', 0, 3),
     254(3, 'Uživatel', 'User', '8be3c943b1609fffbfc51aad666d0a04adf83c9d', 'user@localhost', '192.168.0.3', '2009-06-09 10:48:24', '0000-00-00 00:00:00', 0, 2);
     255
    214256
    215257-- --------------------------------------------------------
     
    230272  PRIMARY KEY  (`Id`),
    231273  KEY `User` (`User`)
    232 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
    233 
    234 
     274) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
     275
     276
Note: See TracChangeset for help on using the changeset viewer.