DROP TABLE IF EXISTS hosxp_ddl_field;
CREATE TABLE IF NOT EXISTS `hosxp_ddl_field`
`table_name` VARCHAR(150) NOT NULL DEFAULT '',
`field_name` VARCHAR(150) NOT NULL DEFAULT '',
`field_type_mysql` VARCHAR(100) DEFAULT NULL,
`field_type_postgresql` VARCHAR(100) DEFAULT NULL,
`field_type_mssql` VARCHAR(100) DEFAULT NULL,
`field_type_interbase` VARCHAR(100) DEFAULT NULL,
`field_width` INT(11) DEFAULT NULL,
`field_null` VARCHAR(10) DEFAULT NULL,
`field_number` INT(11) DEFAULT NULL,
`field_primary` CHAR(1) DEFAULT NULL,
`field_type_oracle` VARCHAR(150) DEFAULT NULL,
`field_type_native` VARCHAR(100) DEFAULT NULL,
`field_precision` INT(11) DEFAULT NULL,
`field_precision_text` VARCHAR(100) DEFAULT NULL,
PRIMARY KEY (`table_name`,`field_name`),
KEY `field_name` (`field_name`),
KEY `table_name` (`table_name`)
) ;
DROP TABLE IF EXISTS hosxp_ddl_index;
CREATE TABLE IF NOT EXISTS `hosxp_ddl_index` (
`table_name` VARCHAR(150) NOT NULL DEFAULT '',
`index_name` VARCHAR(150) NOT NULL DEFAULT '',
`field_number` INT(11) DEFAULT NULL,
`field_name` VARCHAR(150) NOT NULL DEFAULT '',
`index_unique` CHAR(1) DEFAULT NULL,
`index_seq` INT(11) DEFAULT NULL,
PRIMARY KEY (`table_name`,`index_name`,`field_name`),
KEY `index_name` (`index_name`),
KEY `table_name` (`table_name`)
) ;