addNotNullConstraint on h2 database has unexpected side effects

Description

For the h2 database the generated SQL for 'addNotNullConstraint' is of the form 'alter <table> alter column <name> <type> not null'. This has side effects such as removing the column default value. The generated SQL should be of the form 'alter <table> alter column <name> set not null' to avoid these side effects.

Environment

Windows 7, h2 version 1.4.180.

Reporter

Steve Potter

Components

Fix versions

Affects versions

Priority

Minor
Configure