When you apply changes from imported metadata, a warning message is displayed if
foreign key metadata is about to be lost. At that time, you can cancel or continue the apply
operation. However, if you accidentally lose foreign key metadata as a result of an
apply operation, it is possible to restore this metadata.
Assuming that the imported metadata correctly specifies the primary keys or foreign
keys for a set of tables, you can compare the imported metadata to the metadata in
the repository. In the Comparison Results window, select the icon for the appropriate
comparison result. Then, click
Redo the comparison in the toolbar. In the
Differences window, accept all changes, or select the
primary key table and all related foreign key tables together and apply changes to them.
After
you import the metadata for a table, you can view the metadata for
any keys by displaying the properties window for the table and clicking
the Keys tab.