Ignore:
Timestamp:
Jun 15, 2011, 11:11:59 AM (13 years ago)
Author:
george
Message:
  • Added: Import relation one and many from existed database.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.pas

    r19 r20  
    361361    end;
    362362
     363    if Tables.IndexOf(TypeDateTime) = -1 then begin
     364      Database.Query(DbRows, 'CREATE TABLE IF NOT EXISTS `' + TypeDateTime + '` ( ' +
     365        '`Id` int(11) NOT NULL AUTO_INCREMENT,' +
     366        '`CustomType` int NOT NULL,' +
     367        '`Default` datetime NOT NULL,' +
     368        '`Min` datetime NOT NULL,' +
     369        '`Max` datetime NOT NULL,' +
     370        'KEY `CustomType` (`CustomType`),' +
     371        'PRIMARY KEY (`Id`)' +
     372        ') ENGINE=InnoDB  DEFAULT CHARSET=utf8');
     373    end;
     374
    363375    if Tables.IndexOf(TypeString) = -1 then begin
    364376      Database.Query(DbRows, 'CREATE TABLE IF NOT EXISTS `' + TypeString + '` ( ' +
Note: See TracChangeset for help on using the changeset viewer.