How to do an ON UPDATE
in a CREATE TABLE
request in H2 database.
Context:
I'm using the sql-maven-plugin (1.5) to generate a table in an h2 database in my project.
But when I call the script sql, I have a org.h2.message.DbException.getJdbcSQLException
.
My script:
CREATE TABLE IF NOT EXISTS TEST(
DATE timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
);