Annotation to specify details for DDL & Migration-generation. (e.g. defaults/renames/...)
This annotation is EXPERIMENTAL and may change.
- Author:
- Roland Praml, FOCONIS AG
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionPlatform[]Specific platforms this migration change applies to.String[]DdlScript that will be executed after the 'add' command.String[]DdlScript that will be executed after the 'alter' commandString[]DdlScript that will be executed before the 'add' commandString[]DdlScripts that will be executed before the 'alter' command.
-
Element Details
-
preAlter
String[] preAlterDdlScripts that will be executed before the 'alter' command.You may write a custom update routine here. If you do not specify an SQL here, and this will alter the table to a non-null column, ebean will autogenerate a statement from default value like this:
UPDATE table SET column = 'foo' WHERE column IS NULL
- Default:
- {}
-
postAlter
String[] postAlterDdlScript that will be executed after the 'alter' command- Default:
- {}
-
preAdd
String[] preAddDdlScript that will be executed before the 'add' command- Default:
- {}
-
postAdd
String[] postAddDdlScript that will be executed after the 'add' command. You may write certain update scripts here.- Default:
- {}
-
platforms
Platform[] platformsSpecific platforms this migration change applies to.- Default:
- {}
-