i'm trying to convert a MySql data base to Sqlite but i'm facing a problem with the unique constraint of primary key, here is my MySql table code:
CREATE TABLE `table01` (
`idtable1` INT(11) NOT NULL DEFAULT 0,
`nom1` VARCHAR(50) NULL DEFAULT NULL,
PRIMARY KEY (`idtable1` ASC),
UNIQUE KEY `idtable1` (`idtable1` ASC)
) DEFAULT CHARSET=utf8 ENGINE=InnoDB;
and when i convert it using DBconvert for SQLite & MySql here is what i get:
CREATE TABLE table01 (
idtable1 int PRIMARY KEY NOT NULL DEFAULT 0,
nom1 varchar(50) DEFAULT NULL
);
CREATE UNIQUE INDEX idtable1
ON table01
(idtable1);
so when i read my data base, "using SQLite Maestro", SQLite Maestro fail to recognize the primary key's unique contraint.