I have added a feature request
(http://groups.google.com/group/h2-database/web/roadmap, Support ENUM
data type), but it will take a while until this is implemented.
A workaround is using this construct:
create table test(id int primary key, status varchar not null default
'Current' check status in ('Current', 'Lapsed', 'Unknown'));
insert into test values(1, default);
Or using a user defined data type (domain):
create domain status as varchar not null default 'Current' check value
in ('Current', 'Lapsed', 'Unknown');
create table test(id int primary key, status status);
Regards,
Thomas
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.