From: Oleg Broytman Date: Wed, 10 May 2017 22:25:27 +0000 (+0300) Subject: TODO: even more MySQL-specific fixes X-Git-Tag: 0.2.2~6 X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=commitdiff_plain;h=37241eff9eaf95463d02b703b573b1759abd6167 TODO: even more MySQL-specific fixes [skip ci] --- diff --git a/TODO b/TODO index dba3442..5695fbf 100644 --- a/TODO +++ b/TODO @@ -6,9 +6,20 @@ In SQLite/Postgres (non-MySQL) mode: Replace AUTO_INCREMENT columns with INTEGER PRIMARY KEY for SQLite or serial for Postgres. + Change TINYINT to SMALLINT. Remove UNSIGNED. + For Postgres replace int with INTEGER. + Remove CHARACTER SET, COLLATE and COMMENT from column definitions. + Remove KEY and inde name from UNIQUE KEY: + UNIQUE KEY name (columns) -> UNIQUE (columns). + + Change multicolumn PRIMARY KEY to UNIQUE. + Remove table options like ENGINE, AUTO_INCREMENT, CHARSET, etc: - CREATE TABLE name (column_definitions) table_options; + CREATE TABLE name (column_definitions) table_options. + + Remove LOCK/UNLOCK TABLES. - Remove LOCK/UNLOCK TABLES; + Convert KEY to CREATE INDEX; remove size limit: + KEY name ("COLUMN_NAME"(20)) -> CREATE INDEX name ON table ("COLUMN_NAME").