double not null constraints
![sfrade](https://us.v-cdn.net/6029854/uploads/defaultavatar/nZUSABQN8JEE0.jpg)
Hi
the code generated by Source control create a constraint NOT NULL and a CHECK (xxx IS NOT NULL) for the same field.
see the field titi_name in the code below
Seb
the code generated by Source control create a constraint NOT NULL and a CHECK (xxx IS NOT NULL) for the same field.
see the field titi_name in the code below
CREATE TABLE unified.titi ( titi_id RAW(16) DEFAULT SYS_GUID() NOT NULL, titi_name VARCHAR2(50 BYTE) NOT NULL CONSTRAINT nn_titi_tina CHECK ("TITI_NAME" IS NOT NULL), CONSTRAINT titi_pk PRIMARY KEY (titi_id) );
Seb
Comments
I understand the problem, I believe it to be caused in the method that Oracle creates the metadata information.
Although you create your SQL script as follows:
Oracle is storing the metadata information as follows:
As Source Control for Oracle will read how the table is created from the metadata, hence the difference.
Does this cause a problem for you?
A support ticket has been created for you HERE.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com