Add internal support for create-if-necessary db schema stragegy

Description

Current DbSchema strategies are:

CREATE, CREATE_DROP, DROP_CREATE, CHECK_VERSION

I would like one that CREATEs the schema if it doesn't already exist, but if it does already exist, then it runs CHECK_VERSION (and leaves the data alone).

I would like schema creation to be an automatic part of my application bootstrap, not an explicit step that an admin must perform. (grails works this way quite well).

As per Tom's forum comments, I propose to add an internal (non-API) strategy CREATE_OR_CHECK_VERSION.

Assignee

Tom Baeyens

Reporter

Michael Lawler

Labels

None

Components

Fix versions

Priority

Major
Configure