]> git.phdru.name Git - sqlconvert.git/blobdiff - TODO
Build(GHActions): Use `checkout@v4` instead of outdated `v2`
[sqlconvert.git] / TODO
diff --git a/TODO b/TODO
index 590f4bb4fff8d0b9f9f5e98add486ae27f0bd2a1..f3b3e01f97c19e16561ea83edad522c4b83b7ed7 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,7 +1,28 @@
-Fix semicolons and newlines after /*! directives */
+In SQLite/Postgres (non-MySQL) mode:
 
+   In CREATE TABLE:
 
-Convert string escapes to generic SQL, Postgres- or SQLite-specific.
+      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.
 
-Convert extended INSERTs to series of plain INSERTs.
+      Remove CHARACTER SET, COLLATE and COMMENT from column definitions.
+
+      Remove KEY and index 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.
+
+      Convert KEY to CREATE INDEX; remove size limit:
+         KEY name ("COLUMN_NAME"(20)) ->
+         CREATE INDEX name ON table ("COLUMN_NAME").
+
+   Remove LOCK/UNLOCK TABLES.
+
+
+Installers.