Changeset 146 for trunk/Modules/System
- Timestamp:
- Dec 29, 2023, 11:44:26 PM (12 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/System/ModuleSystem.pas
r145 r146 1 unit UModuleSystem;1 unit ModuleSystem; 2 2 3 3 interface … … 28 28 29 29 uses 30 UCore, USqlDatabase;30 Core, USqlDatabase; 31 31 32 32 { TModuleSystem } … … 42 42 if Module.Installed then Data.Add('Installed', '1') 43 43 else Data.Add('Installed', '0'); 44 Core.Co mmonDatabase.Update('SystemModule', Data, 'Name="' + Module.Identification + '"');44 Core.Core.CommonDatabase.Update('SystemModule', Data, 'Name="' + Module.Identification + '"'); 45 45 finally 46 46 Data.Free; … … 72 72 try 73 73 DbRows := TDbRows.Create; 74 Core.Co mmonDatabase.Select(DbRows, 'SystemModule', '`Name`, `Installed`');74 Core.Core.CommonDatabase.Select(DbRows, 'SystemModule', '`Name`, `Installed`'); 75 75 for I := 0 to DbRows.Count - 1 do 76 76 with DbRows[I] do begin … … 100 100 try 101 101 DbRows := TDbRows.Create; 102 Core.Co mmonDatabase.Query(DbRows,102 Core.Core.CommonDatabase.Query(DbRows, 103 103 'CREATE TABLE IF NOT EXISTS `SystemModule` (' + 104 104 ' `Id` int(11) NOT NULL AUTO_INCREMENT,' + … … 127 127 try 128 128 DbRows := TDbRows.Create; 129 Core.Co mmonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `SystemModule`');129 Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `SystemModule`'); 130 130 finally 131 131 DbRows.Free; … … 149 149 Data := TDictionaryStringString.Create; 150 150 151 Core.Co mmonDatabase.Select(DbRows, 'SystemModule', 'Name');151 Core.Core.CommonDatabase.Select(DbRows, 'SystemModule', 'Name'); 152 152 153 153 for I := 0 to Manager.Modules.Count - 1 do … … 166 166 Index := 0; 167 167 while (Index < DbRows.Count) and (DbRows[Index].Items['Name'] <> Identification) do Inc(Index); 168 if Index >= DbRows.Count then Core.Co mmonDatabase.Insert('SystemModule', Data)169 else Core.Co mmonDatabase.Update('SystemModule', Data, 'Name="' + Identification + '"');168 if Index >= DbRows.Count then Core.Core.CommonDatabase.Insert('SystemModule', Data) 169 else Core.Core.CommonDatabase.Update('SystemModule', Data, 'Name="' + Identification + '"'); 170 170 end; 171 171 finally
Note:
See TracChangeset
for help on using the changeset viewer.