mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1045 - MySql - DbMigration generate wrong comment syntax - should be alter table comment = syntax
This commit is contained in:
@@ -101,4 +101,11 @@ public class MySqlDdl extends PlatformDdl {
|
||||
apply.append(" comment='").append(tableComment).append("'");
|
||||
}
|
||||
|
||||
/**
|
||||
* Add table comment as a separate statement (from the create table statement).
|
||||
*/
|
||||
@Override
|
||||
public void addTableComment(DdlBuffer apply, String tableName, String tableComment) throws IOException {
|
||||
apply.append(String.format("alter table %s comment = '%s'", tableName, tableComment)).endOfStatement();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user