Changeset 24 for trunk/Forms/UMainForm.pas
- Timestamp:
- Oct 21, 2011, 11:12:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r21 r24 383 383 ') ENGINE=InnoDB DEFAULT CHARSET=utf8'); 384 384 end; 385 386 if Tables.IndexOf(ModuleTable) = -1 then begin 387 Database.Query(DbRows, 'CREATE TABLE IF NOT EXISTS `' + ModuleTable + '` ( ' + 388 '`Id` int(11) NOT NULL AUTO_INCREMENT,' + 389 '`Name` VARCHAR(255) NOT NULL,' + 390 '`Author` VARCHAR(255) NOT NULL,' + 391 '`Website` VARCHAR(255) NOT NULL,' + 392 '`Version` VARCHAR(255) NOT NULL,' + 393 '`License` VARCHAR(255) NOT NULL,' + 394 '`Description` TEXT NOT NULL,' + 395 'PRIMARY KEY (`Id`)' + 396 ') ENGINE=InnoDB DEFAULT CHARSET=utf8'); 397 end; 385 398 finally 386 399 Tables.Free; … … 409 422 GroupId: Integer; 410 423 EnumId: Integer; 424 ModuleId: Integer; 425 ModuleBaseId: Integer; 411 426 begin 412 427 with Core.System do begin … … 485 500 AddPropertyRelationMany(ObjectPropertyGroupId, 'Properties', 'Properties', True, ObjectPropertyIdGroup); 486 501 AddPropertyRelationMany(PropertyTypeId, 'Custom types', 'CustomTypes', True, CustomTypeIdType); 502 ModuleId := AddObject('Modules', 'Module', Core.System.Database.Database, GroupId); 503 AddPropertyNumber(ModuleId, 'Id', 'Id', False); 504 AddPropertyString(ModuleId, 'Name', 'Name', True); 505 AddPropertyString(ModuleId, 'Author', 'Author', True); 506 AddPropertyString(ModuleId, 'Website', 'Website', False); 507 AddPropertyString(ModuleId, 'Version', 'Version', True); 508 AddPropertyText(ModuleId, 'Description', 'Description', False); 509 AddPropertyString(ModuleId, 'License', 'License', False); 510 511 ModuleBaseId := AddModule('Base', 'Chronos', '', '0.1', '', 'GNU/GPL'); 487 512 end; 488 513 end;
Note:
See TracChangeset
for help on using the changeset viewer.