Changeset 137 for trunk/Modules/System/UModuleSystem.pas
- Timestamp:
- Sep 9, 2022, 1:16:58 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/System/UModuleSystem.pas
r105 r137 1 1 unit UModuleSystem; 2 3 {$mode delphi}4 2 5 3 interface … … 63 61 destructor TModuleSystem.Destroy; 64 62 begin 65 inherited Destroy;63 inherited; 66 64 end; 67 65 … … 74 72 try 75 73 DbRows := TDbRows.Create; 76 Core.CommonDatabase.Select(DbRows, 'SystemModule', ' Name, Installed');74 Core.CommonDatabase.Select(DbRows, 'SystemModule', '`Name`, `Installed`'); 77 75 for I := 0 to DbRows.Count - 1 do 78 76 with DbRows[I] do begin … … 102 100 try 103 101 DbRows := TDbRows.Create; 104 Core.CommonDatabase.Query(DbRows,105 'CREATE TABLE IF NOT EXISTS `SystemModule` (' +106 ' `Id` int(11) NOT NULL AUTO_INCREMENT,' +107 ' `Name` varchar(255) COLLATE utf8_czech_ci NOT NULL,' +108 ' `Title` varchar(255) COLLATE utf8_czech_ci NOT NULL,' +109 ' `Creator` varchar(255) COLLATE utf8_czech_ci NOT NULL,' +110 ' `Version` varchar(255) COLLATE utf8_czech_ci NOT NULL,' +111 ' `License` varchar(255) COLLATE utf8_czech_ci NOT NULL,' +112 ' `Installed` int(11) NOT NULL,' +113 ' `Description` text COLLATE utf8_czech_ci NOT NULL,' +114 ' `Dependencies` varchar(255) COLLATE utf8_czech_ci NOT NULL,' +115 ' PRIMARY KEY (`Id`)' +116 ') ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;');102 Core.CommonDatabase.Query(DbRows, 103 'CREATE TABLE IF NOT EXISTS `SystemModule` (' + 104 ' `Id` int(11) NOT NULL AUTO_INCREMENT,' + 105 ' `Name` varchar(255) COLLATE utf8_czech_ci NOT NULL,' + 106 ' `Title` varchar(255) COLLATE utf8_czech_ci NOT NULL,' + 107 ' `Creator` varchar(255) COLLATE utf8_czech_ci NOT NULL,' + 108 ' `Version` varchar(255) COLLATE utf8_czech_ci NOT NULL,' + 109 ' `License` varchar(255) COLLATE utf8_czech_ci NOT NULL,' + 110 ' `Installed` int(11) NOT NULL,' + 111 ' `Description` text COLLATE utf8_czech_ci NOT NULL,' + 112 ' `Dependencies` varchar(255) COLLATE utf8_czech_ci NOT NULL,' + 113 ' PRIMARY KEY (`Id`)' + 114 ') ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;'); 117 115 finally 118 116 DbRows.Free; 119 117 end; 120 118 UpdateModuleList; 121 inherited Install;119 inherited; 122 120 end; 123 121 … … 126 124 DbRows: TDbRows; 127 125 begin 128 inherited Uninstall;126 inherited; 129 127 try 130 128 DbRows := TDbRows.Create; … … 137 135 procedure TModuleSystem.Upgrade; 138 136 begin 139 inherited Upgrade;137 inherited; 140 138 end; 141 139
Note:
See TracChangeset
for help on using the changeset viewer.