mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Sql: schema: MySql now changes column type as well when upgrading DB (thanks sergey)
git-svn-id: svn://ultimatepp.org/upp/trunk@5403 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9668e592f2
commit
4666a8ce9b
1 changed files with 5 additions and 0 deletions
|
|
@ -23,6 +23,11 @@ void SqlSchema::FlushColumn() {
|
|||
Upgrade() << Expand("alter table @t alter column ") << cd << ";\n";
|
||||
}
|
||||
else
|
||||
if(dialect == MY_SQL) {
|
||||
Upgrade() << Expand("alter table @t add ") << cn << ";\n";
|
||||
Upgrade() << Expand("alter table @t modify ") << cd << ";\n";
|
||||
}
|
||||
else
|
||||
if (dialect == SQLITE3 || dialect == MY_SQL)
|
||||
Upgrade() << Expand("alter table @t add ") << cd << ";\n";
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue