Subject Problem extracting check constraints in FB 2.1.3
Author jegazarco
Hello, i have backed up a database from fb 1.03 and restore it in fb 2.1.3. After that i have extracted metadata in fb 2.1.3 and tried to create a database from scratch with isql. I'm getting a lot of errors with message:

Statement failed, SQLCODE = -104
Dynamic SQL Error
-SQL error code = -104
-Token unknown - line 3, column 1
-check
At line 449343 in file c:\bd\firebird2\gestlab2.txt

Looking for lines with check word, i see the sql script has this line

CREATE TRIGGER CHECK_21 FOR TAR_GRUPO
ACTIVE BEFORE UPDATE POSITION 0
check (( IDTARIFA <> 0 ))^


In Firebird 1, there was a check constraint in that table

ALTER TABLE TAR_GRUPO ADD CONSTRAINT CHK_TAR_GRUPO_NO_CERO check (( IDTARIFA <> 0 ));

that is present in the restored database, but in the database that is created from metadata, does not exists, because when is executed

CREATE TRIGGER CHECK_21 FOR TAR_GRUPO
ACTIVE BEFORE UPDATE POSITION 0
check (( IDTARIFA <> 0 ))^

the above exception is raised.

Thanks.