Jump to content
Robert Gilland

ALTER DOMAIN INTERBASE ON PRIMARY KEY

Recommended Posts

I am using the have an Interbase database with an Interbase2020 server.

I have a table with a field of TYPE CHAR(6) DOMAIN CALLED INVOICECODE in it's primary key

I call ALTER DOMAIN INVOICECODE TYPE CHAR(10)

I get "unsuccessful metadata update MODIFY RDB$FIELDS failed action cancelled by trigger (1) to preserve data integrity RDB$TRIGGER_39 Cannot update index segment used by an Integrity Constraint"

 

What can I do?

Share this post


Link to post

Drop Primary key, alter domain, recreate primary key. If You have Foreign keys - first drop them

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×