mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#522 - DDL - DB migration diff does not include DDL to add comment
This commit is contained in:
@@ -2,6 +2,7 @@ package com.avaje.ebean.dbmigration.model;
|
||||
|
||||
import com.avaje.ebean.dbmigration.migration.AddColumn;
|
||||
import com.avaje.ebean.dbmigration.migration.AddHistoryTable;
|
||||
import com.avaje.ebean.dbmigration.migration.AddTableComment;
|
||||
import com.avaje.ebean.dbmigration.migration.AlterColumn;
|
||||
import com.avaje.ebean.dbmigration.migration.ChangeSet;
|
||||
import com.avaje.ebean.dbmigration.migration.ChangeSetType;
|
||||
@@ -237,4 +238,11 @@ public class ModelDiff {
|
||||
public void addCreateIndex(CreateIndex createIndex) {
|
||||
applyChanges.add(createIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a table comment to the 'apply' changes.
|
||||
*/
|
||||
public void addTableComment(AddTableComment addTableComment) {
|
||||
applyChanges.add(addTableComment);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user