mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
Fix: DDL will get wrong hint for special migration
This commit is contained in:
1 parent
3c2b5f253f
commit
dab428ead5
1 file changed
+3
-2
+3
-2
@@ -108,8 +108,9 @@ public class BaseTableDdl implements TableDdl {
|
||||
// altered columns will be in the alterTable buffers.
|
||||
// 'after' goes to the post-alter-buffer
|
||||
if (!after.isEmpty()) {
|
||||
writer.applyPostAlter().append("-- NOTE: table has @History - special migration may be necessary").newLine();
|
||||
|
||||
if (withHistory) {
|
||||
writer.applyPostAlter().append("-- NOTE: table has @History - special migration may be necessary").newLine();
|
||||
}
|
||||
// here we run post migration scripts
|
||||
for (String ddlScript : after) {
|
||||
writer.applyPostAlter().appendStatement(translate(ddlScript, tableName, columnName, defaultValue));
|
||||
|
||||
Reference in new issue
Block a user