update RDB$RELATION_FIELDS set
RDB$FIELD_SOURCE = 'D_INT64'
where (RDB$FIELD_NAME = 'SUBWAY_ID') and
(RDB$RELATION_NAME = 'DLV_ADDRESSES');
Commit work;

ALTER TABLE DLV_SUBWAY_STATIONS DROP CONSTRAINT PK_DLV_SUBWAY_STATIONS;
commit work;

update RDB$RELATION_FIELDS set RDB$FIELD_SOURCE = 'D_INT64' where (RDB$FIELD_NAME = 'SUBWAY_ID') and (RDB$RELATION_NAME = 'DLV_SUBWAY_STATIONS');

Commit work;

ALTER TABLE DLV_SUBWAY_STATIONS ADD CONSTRAINT PK_DLV_SUBWAY_STATIONS PRIMARY KEY (SUBWAY_ID);

Commit work;

update RDB$RELATION_FIELDS set RDB$FIELD_SOURCE = 'D_INT64' where (RDB$FIELD_NAME = 'TOWN_ID') and (RDB$RELATION_NAME = 'DLV_SUBWAY_STATIONS');

Commit work;


