Ignore:
Timestamp:
Dec 29, 2023, 11:44:26 PM (5 months ago)
Author:
chronos
Message:
  • Modified: Unit names without U prefix.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Modules/News/ModuleNews.pas

    r145 r146  
    1 unit UModuleNews;
     1unit ModuleNews;
    22
    33interface
    44
    55uses
    6   Classes, SysUtils, UModularSystem, UModuleBase, UNews, UHTTPServer, UModuleUser;
     6  Classes, SysUtils, UModularSystem, ModuleBase, News, UHTTPServer, ModuleUser;
    77
    88type
     
    2727
    2828uses
    29   UCore, UUserControlPage, USqlDatabase;
     29  Core, UserControlPage, USqlDatabase;
    3030
    3131{ TModuleNews }
     
    8383    DbRows := TDbRows.Create;
    8484
    85     Core.CommonDatabase.Query(DbRows,
     85    Core.Core.CommonDatabase.Query(DbRows,
    8686    'CREATE TABLE IF NOT EXISTS `News` (' +
    8787    '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    103103    ') ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;');
    104104
    105     Core.CommonDatabase.Query(DbRows,
     105    Core.Core.CommonDatabase.Query(DbRows,
    106106    'CREATE TABLE IF NOT EXISTS `NewsCategory` (' +
    107107    '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    116116    ') ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1; ');
    117117
    118     Core.CommonDatabase.Query(DbRows,
     118    Core.Core.CommonDatabase.Query(DbRows,
    119119    'ALTER TABLE `News`' +
    120120    '  ADD CONSTRAINT `News_ibfk_1` FOREIGN KEY (`Category`) REFERENCES `NewsCategory` (`Id`);');
     
    133133    DbRows := TDbRows.Create;
    134134
    135     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `News`');
    136     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NewsGroup`');
     135    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `News`');
     136    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NewsGroup`');
    137137  finally
    138138    DbRows.Free;
Note: See TracChangeset for help on using the changeset viewer.