Hi,
It may be a slightly different issue. Here is the script:
==================================================================================
CREATE CACHED TABLE PUBLIC.TARGET_IDS(
TARGET_ID INT NOT NULL
);
ALTER TABLE PUBLIC.TARGET_IDS ADD CONSTRAINT PUBLIC.CONSTRAINT_3
PRIMARY KEY(TARGET_ID);
==================================================================================
I need to drop the index. I no longer care about the not null
constraint.
I tried running : ALTER TABLE TARGET_IDS MODIFY TARGET_ID int; to drop
the constraint, it does not seem to be supported.
Actually I just updated to the latest nightly build (106) using the
"svn update" and the ALTER TABLE DROP PRIMARY KEY did work for me.
My previous H2 version where it did not work was 104.
What is the recommended way to get rid of the primary key constraint
in my case ?
Alex
On Jan 9, 12:27 pm, "Thomas Mueller" <
thomas.tom.muel...@gmail.com>
wrote:
> Hi,
>
> How does your database look like? I can't reproduce the problem using
>
> create table test(id int primary key);
> ALTER TABLE test DROP PRIMARY KEY;
>
> You can get the CREATE statements by running
>
> SCRIPT NODATA TO 'test.sql';
>
> Regards,
> Thomas
>