diff --git a/uppsrc/Sql/SqlSchema.cpp b/uppsrc/Sql/SqlSchema.cpp index 8497055dd..03ab32661 100644 --- a/uppsrc/Sql/SqlSchema.cpp +++ b/uppsrc/Sql/SqlSchema.cpp @@ -22,9 +22,11 @@ void SqlSchema::FlushColumn() { Upgrade() << Expand("alter table @t add ") << cn << ";\n"; Upgrade() << Expand("alter table @t alter column ") << cd << ";\n"; } - else if (dialect == SQLITE3) + else + if (dialect == SQLITE3 || dialect == MY_SQL) Upgrade() << Expand("alter table @t add ") << cd << ";\n"; - else if (dialect == PGSQL) + else + if (dialect == PGSQL) Upgrade() << Expand("alter table @t add \n") << cd << "\n;\n\n"; else Upgrade() << Expand("alter table @t add (\n") << cd << "\n);\n\n";