8

How to drop not null constraint that will work both in PostgreSql and HSQL?

I'm using: ALTER TABLE tablename ALTER COLUMN columnname DROP NOT NULL; But it's not working in HSQL.

This column was created: columnname TEXT NOT NULL,

kostepanych
  • 1,849
  • 8
  • 28
  • 40

1 Answers1

5

The current HSQLDB syntax is: ALTER TABLE tablename ALTER COLUMN columnname SET NULL But the PostgreSQL syntax will be supported in HSQLDB version 2.3.4 release.

fredt
  • 23,296
  • 3
  • 39
  • 61