Ignore:
Timestamp:
Sep 7, 2012, 10:43:02 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Zobrazení stránek s a bez modulu User.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UModuleUser.pas

    r92 r94  
    66
    77uses
    8   Classes, SysUtils, UModularSystem;
     8  Classes, SysUtils, UModularSystem, SpecializedDictionary;
    99
    1010type
     
    6262var
    6363  DbRows: TDbRows;
     64  Data: TDictionaryStringString;
    6465begin
    6566  try
    6667    DbRows := TDbRows.Create;
     68    Data := TDictionaryStringString.Create;
     69
    6770    Core.CommonDatabase.Query(DbRows,
    6871    'CREATE TABLE IF NOT EXISTS `User` (' +
     
    7679    '  PRIMARY KEY (`Id`)' +
    7780    ') ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
     81
     82    Data.Add('Id', '1');
     83    Data.Add('Name', 'anonymous');
     84    Data.Add('FullName', 'Anonymous');
     85    Data.Add('RegistrationTime', 'NOW()');
     86    Core.CommonDatabase.Insert('User', Data);
     87
    7888    Core.CommonDatabase.Query(DbRows,
    7989    'CREATE TABLE IF NOT EXISTS `UserOnline` (' +
     
    90100    ') ENGINE=MEMORY  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;');
    91101  finally
     102    Data.Free;
    92103    DbRows.Free;
    93104  end;
Note: See TracChangeset for help on using the changeset viewer.