Thank you kindly, Tlaukkan (Tommil) for a patch that:

Cleaned up schema creation scripts of MySQL to compliant form and created 
SQLite scripts from them. In future it would be optimal if scripts from 
different databases could be generated from MySQL scripts to ensure optimal 
consistency between schemas of different databases. Did not yet review 
column names. ID columns seem to have variety in naming which can be confusing.
This commit is contained in:
Charles Krinke
2009-01-12 20:14:39 +00:00
parent ade107f04f
commit c00c855cc5
10 changed files with 679 additions and 597 deletions

View File

@@ -1,15 +1,10 @@
START TRANSACTION;
CREATE TABLE `Assets` (
`ID` char(36) NOT NULL,
`Type` smallint(6) default NULL,
`InvType` smallint(6) default NULL,
`Name` varchar(64) default NULL,
`Description` varchar(64) default NULL,
`Local` tinyint(1) default NULL,
`Temporary` tinyint(1) default NULL,
`Data` longblob,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
COMMIT;
CREATE TABLE Assets (
ID VARCHAR(36) NOT NULL,
Type TINYINT DEFAULT NULL,
Name VARCHAR(64) DEFAULT NULL,
Description VARCHAR(64) DEFAULT NULL,
Local BIT DEFAULT NULL,
Temporary BIT DEFAULT NULL,
Data LONGBLOB,
PRIMARY KEY (ID)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 1';