Changeset 146 for trunk/Modules/Network/ModuleNetwork.pas
- Timestamp:
- Dec 29, 2023, 11:44:26 PM (11 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/ModuleNetwork.pas
r145 r146 1 unit UModuleNetwork;1 unit ModuleNetwork; 2 2 3 3 interface 4 4 5 5 uses 6 Classes, SysUtils, UModularSystem, UModuleBase, 7 UWebPage; 6 Classes, SysUtils, UModularSystem, ModuleBase, UWebPage; 8 7 9 8 type … … 29 28 30 29 uses 31 UCore, UPageNetwork, USqlDatabase;30 Core, PageNetwork, USqlDatabase; 32 31 33 32 { TModuleNetwork } … … 75 74 DbRows := TDbRows.Create; 76 75 77 Core.Co mmonDatabase.Query(DbRows,76 Core.Core.CommonDatabase.Query(DbRows, 78 77 'CREATE TABLE IF NOT EXISTS `NetworkConfiguration` (' + 79 78 ' `Id` int(11) NOT NULL AUTO_INCREMENT,' + … … 89 88 ') ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1; '); 90 89 91 Core.Co mmonDatabase.Query(DbRows,90 Core.Core.CommonDatabase.Query(DbRows, 92 91 'CREATE TABLE IF NOT EXISTS `NetworkDevice` (' + 93 92 ' `Id` int(11) NOT NULL AUTO_INCREMENT,' + … … 110 109 ') ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;'); 111 110 112 Core.Co mmonDatabase.Query(DbRows,111 Core.Core.CommonDatabase.Query(DbRows, 113 112 'CREATE TABLE IF NOT EXISTS `NetworkInterface` (' + 114 113 ' `Id` int(11) NOT NULL AUTO_INCREMENT,' + … … 127 126 ') ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;'); 128 127 129 Core.Co mmonDatabase.Query(DbRows,128 Core.Core.CommonDatabase.Query(DbRows, 130 129 'CREATE TABLE IF NOT EXISTS `NetworkInterfaceType` (' + 131 130 ' `Id` int(11) NOT NULL AUTO_INCREMENT,' + … … 137 136 ') ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;'); 138 137 139 Core.Co mmonDatabase.Query(DbRows,138 Core.Core.CommonDatabase.Query(DbRows, 140 139 'CREATE TABLE IF NOT EXISTS `NetworkDeviceType` (' + 141 140 ' `Id` int(11) NOT NULL AUTO_INCREMENT,' + … … 159 158 try 160 159 DbRows := TDbRows.Create; 161 Core.Co mmonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkInterfaceType`');162 Core.Co mmonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkInterface`');163 Core.Co mmonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkDeviceType`');164 Core.Co mmonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkDevice`');165 Core.Co mmonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkConfiguration`');160 Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkInterfaceType`'); 161 Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkInterface`'); 162 Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkDeviceType`'); 163 Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkDevice`'); 164 Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `NetworkConfiguration`'); 166 165 finally 167 166 DbRows.Free;
Note:
See TracChangeset
for help on using the changeset viewer.