문제

I would like to continue to use automatic evolution generation with Play, but I would like to make edits on top of it.

Such as my logging table:

create table logging (
member_id                 bigint,
action_id                 smallint,
timestamp                 timestamp,
notes                     varchar(255))
;

I would like to add:

create index IX_logging on logging (member_id, action_id, timestamp);

But every time I make any modifications, it erases my changes.

What do I need to do to somehow use secondary evolution file that contains my modifications and keep auto generation? I don't think making a second 2.sql would work, but I'm not sure. The documentation isn't very clear.

도움이 되었습니까?

해결책

Shortly: it is NOT possible, Ebean is not able to create differential evolutions and/or evolutions only for new models/fields, only thing you can do is creating them yourself.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top